Barry Kay
asked on
Linux - Set folder & File permission inheritance on sub-folders and files
We are a Linux file server.
I have created a new folder and get a group ownership to that folder. I have given the specific user access to that group.
When a use creates a file or folder it make it read only for all other users.
How can I set it so that any file and sub folder will still retain the same permissions as the parent folder?
I will then also need to run a command that will change all permissions on the all curenly folders already created.
I have created a new folder and get a group ownership to that folder. I have given the specific user access to that group.
When a use creates a file or folder it make it read only for all other users.
How can I set it so that any file and sub folder will still retain the same permissions as the parent folder?
I will then also need to run a command that will change all permissions on the all curenly folders already created.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi xeroxzerox
What is the full path for the setfacl command as I get the following when trying to run it.
-bash: setfacl: command not found
What is the full path for the setfacl command as I get the following when trying to run it.
-bash: setfacl: command not found
Full path of setfacl
/usr/bin/setfacl
If you want any full path of command then just run below command.
#whereis setfacl
if it installed then it gives you full path....
/usr/bin/setfacl
If you want any full path of command then just run below command.
#whereis setfacl
if it installed then it gives you full path....
ASKER
Seems as though setfacl is not installed on the server we have.
Any alternative?
Any alternative?
which server it is? it will help with the solutions
Which Linux Distribution You Are Using?
ASKER
Running openSUSE 12.2
strange that it is not included, the other option will be to get it ;)
http://old-en.opensuse.org/How_to_share_directories_between_groups_of_users_using_ACL
http://doc.opensuse.org/documentation/html/openSUSE_122/opensuse-security/cha.security.acls.html
http://old-en.opensuse.org/How_to_share_directories_between_groups_of_users_using_ACL
http://doc.opensuse.org/documentation/html/openSUSE_122/opensuse-security/cha.security.acls.html
ASKER
Where can I download it from?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can try something like this :
http://askubuntu.com/questions/44534/how-to-set-umask-for-a-specific-folder