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 |
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. |
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 |
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. |