LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Default Directory Permissions (https://www.linuxquestions.org/questions/linux-software-2/default-directory-permissions-183853/)

tranquil222 05-20-2004 04:39 PM

Default Directory Permissions
 
Okay, we are using Linux White Box and running Samba for our file server. We have set the groups and and assigned everyone to that group. The only problem is that when a user creates a new directory, they become the owner, and the file permissions make it so that they can rwx to it, other users of the group can r-x to it and the rest can r-x to it. Where are the permissions for new directories that users create set? Thanks in advance.

shanenin 05-20-2004 04:48 PM

maybe you could change the umask value in /etc/profile .

shanenin 05-20-2004 04:51 PM

I just tried it, it seems to work.

tranquil222 05-20-2004 04:53 PM

What exactly did you do ?

shanenin 05-20-2004 04:57 PM

open the file /etc/profile in a text editer. Then change the line umask=022(thats what mine was) to umask=000, this will give full permission on all files that are created. I am not sure if this only effects files that are created in a shell. Probably.

tranquil222 05-20-2004 04:57 PM

I typed in umask, and the default is 0022 , which is consistent with the privileges that are assigned to each directory.
1. How do i change the value to something that allows rwx to the group and the user and --- to everyone else
2. Do I need to do this for each user on the system?

Thanks in advance for all of your help!

tranquil222 05-20-2004 04:59 PM

I will try this. Most people obviously are not creating directories in a shell, but in windows via explorer.

shanenin 05-20-2004 05:09 PM

Quote:

Originally posted by tranquil222
I will try this. Most people obviously are not creating directories in a shell, but in windows via explorer.
most people probably do use the mkdir command to make directories. I do lots with the GUI, but I almost always use the command line for that.

Sorry I could not be more helpful.

tranquil222 05-20-2004 05:10 PM

You were very helpful! I will look into this and get back to you.


All times are GMT -5. The time now is 07:56 AM.