Rany Albeg
August 30th, 2008, 01:40 PM
Hi,
My access permissions to the folder 'Commands' and all its files are 755.
when i open a new file in this folder , its permissions are 644.
I want to save time setting these permissions over and over again with 'chmod -R 755' , so i decided to use umask.
As i was told ,umask works a bit strange.
When you set a new value for umask it sets the default permission to be the difference between the current permission and the one you just determine.
In assumption that my current defaut permissions are 755 , i set the umask value to be 000 so that the default permissions will stay 755 , and so when i will open a new file or directory under the folder 'Commands' ,it will contain its main folder access permissions.
Seems i dont know how to use umask cuz i cant get it done.
Need some help,
Thanks.
My access permissions to the folder 'Commands' and all its files are 755.
when i open a new file in this folder , its permissions are 644.
I want to save time setting these permissions over and over again with 'chmod -R 755' , so i decided to use umask.
As i was told ,umask works a bit strange.
When you set a new value for umask it sets the default permission to be the difference between the current permission and the one you just determine.
In assumption that my current defaut permissions are 755 , i set the umask value to be 000 so that the default permissions will stay 755 , and so when i will open a new file or directory under the folder 'Commands' ,it will contain its main folder access permissions.
Seems i dont know how to use umask cuz i cant get it done.
Need some help,
Thanks.