Results 1 to 5 of 5
Hi everybody. I set the permission for one folder this way. "chmod -R a=rwx myfolder" and now I would like that every file or folder that is created in "myfolder" ...
- 05-21-2007 #1Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
How to set default permissions?
Hi everybody. I set the permission for one folder this way. "chmod -R a=rwx myfolder" and now I would like that every file or folder that is created in "myfolder" automaticly inherits permissions from "myfolder". Is it possible to do that? I am using suse 10.2. Thanx for help.
- 05-21-2007 #2Just Joined!
- Join Date
- May 2007
- Location
- Poland
- Posts
- 5
As far as I know, any file created will be owned by the user who created it and be accessible for all users from his group for reading. I do not know of any way of changing this default, which of course does not mean there are no such ways
- 05-21-2007 #3Linux Newbie
- Join Date
- Mar 2007
- Posts
- 243
If you want to grant all permissions to any file:
chmod 777 <filename>
- 05-21-2007 #4
You need to look up umask. Each user can set default permissions for thenselves.
" I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."
- 05-22-2007 #5Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
I gues umask will be the right command.Thanx guys.


Reply With Quote