LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   new file creation permissions (https://www.linuxquestions.org/questions/linux-software-2/new-file-creation-permissions-153006/)

dskny 03-03-2004 09:31 AM

new file creation permissions
 
when I set the umask for a directory, say to 000, it makes the change, but when I restart the machine...it changes the umask back to 022 for the directory. How would I go about making keep the umask 000 that I changed it to?

thanks

crypticsoda 03-03-2004 09:52 AM

do I understand you right, that you wan't to change the settings only for specific directory? Then use the chmod command.

If you want to set the umask globally for every user add "umask=000" (without the quotes) in /etc/profile, or if you want it only for a specific user in the .profile or .bash_profile in the home directories of the user.

dskny 03-03-2004 10:18 AM

thanks for the reply

right, but if I chmod a directory to 777 and create a new file in it, the file's permissions are 644

I need any new file that is created in just that directory to be at least 666

crypticsoda 03-03-2004 10:32 AM

you can't achieve that with umask (as it is user based), you have to use ACL's for that.


All times are GMT -5. The time now is 10:01 PM.