Page 1 of 1

Create one user with some permission reading and writing

Posted: 2019/12/09 08:47:41
by Riccardo1987
Good morning,
I have to create one Centos user with reading permission for all files and folders but this user have to write only one folder.
What sould I create this user? There are Centos groups with this permission?

Thank you.

Best regards
Riccardo

Re: Create one user with some permission reading and writing

Posted: 2019/12/15 08:32:29
by aks
What sould I create this user?
Whatever you use to normally create users on the system.
There are Centos groups with this permission?
Not built in - it would not be reasonable (how would the system "know" what specific needs you have before it's in your shop?)

Create a custom group. Create the user and add that user as a supplemental member of that custom group. Assign the required permissions to the group. If you need more granular access have a look at setfacl/getfacl to control acls.