Ubuntu Forums Archive Viewer

Permission Help

Archived thread 1030475 from Ubuntu Dev Link Forum. Markdown source: Ubuntu_Dev_Link_Forum/thread_1030475_Permission_Help.md

Original URL About this archive
#1

Hello. I am software developer. I need to create a directory in Ubuntu Home directory via software interface that any files can be copied into and new subdirectories can be added into. I tried to create the directory with 0667 permission. But when I tried to add a subdirectory in it system denied. Then I tried the main directory with 0777 permission. This allowed me to place subdirectories in it. But I want to ask creating a directory with 0777 permission may create any security or system issue?

Thanks.

#2

kineem said: Hello. I am software developer. I need to create a directory in Ubuntu Home directory via software interface that any files can be copied into and new subdirectories can be added into. I tried to create the directory with 0667 permission. But when I tried to add a subdirectory in it system denied. Then I tried the main directory with 0777 permission. This allowed me to place subdirectories in it. But I want to ask creating a directory with 0777 permission may create any security or system issue?

Thanks.

with the 777 everyone can read/write/delete it might be a secutity issue.

chmod 775 will be more secure

#3

In view of your apparent uncertainty, I wonder if you are aware that you can make a new directory with a terminal command ``` sudo mkdir /path/to/directory/directoryname


If you want them all to have 0667 permissions just make all of them first and then set permissions after.  Or perhaps I have misunderstood the manner in which you are trying to do this and the reasons why.
#4

Thanks gjoellee. It is not a terminal issue. I create the directory and also its permission via software interface. As stated in my first post, 0667 created problem but 0777 just worked ok. But I thought it might be problematic for security. 0775 works now,too. And I hope 0775 will be more secure for Ubuntu.

#5

Directories should usually be listable (that's the meaning of the execute bit for directories).

#6

jpkotta said: Directories should usually be listable (that's the meaning of the execute bit for directories).

Hello. What does it mean in 0*** way? Does 0775 assures your suggestion?