Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chmod??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I have a problem.

I have set the permissions for a project directory to 770, so i want just the owner and the group to access the directory, but when someone in the group is saving a file it gets 700, so it just the owner that can access the file, why doesnt i get 770 on the files?? The root directory is like i said set to 770? This means that i have to change back to 770 on all saved files.

Hope someone can help me!

Jonte
 
check the umask variable in your .profile. it meight be set to 066. change it to 006.
umask=006. the umask variable decides the dafault permissions to the files and directories that are created.

hope this helps.

sendhil
 
Sendhil,

I,ll tried umask=006 and i did get : r-w-r--r-- on the file, what should i set the umask to get rwx-rwx--- ??

Jonte
 
just type umask and see what value it returns. if ur umask is 006 the any file that u create will have a permission 660.

the permissions for a file are

666 minus 006 that will be 660

the permissions for any directory created will be
777 minus ( umask, in this case 006) that will be 771.
if u have changed the value of umask in ur .profile then u will have to run ur .profile again.
check ur umask value by just typing
umask.
hope this helps.
sendhilk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top