LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   giving read-only permission to specific users for all files and folders (https://www.linuxquestions.org/questions/linux-newbie-8/giving-read-only-permission-to-specific-users-for-all-files-and-folders-4175557251/)

Awali777 10-27-2015 01:16 AM

giving read-only permission to specific users for all files and folders
 
Hi,
I have created 2 users Audit1 & Audit2 and i want them to a read only access in all folders, sub-folders and files. Please assist showing me how to do it. Thanks!

serverpoint.com 10-27-2015 02:55 AM

how about this

Create a group.Add users to this group and assign a read only permissions for this group in to the folders you have mentioned. Have you tried this?

suicidaleggroll 10-27-2015 11:01 AM

Standard UNIX permissions don't work this way. Files/directories dictate who can and cannot access them, not the other way around. ACLs may be able to handle this, but I don't have a lot of experience there.

chrism01 10-27-2015 09:17 PM

If you really mean ALL, then suicidaleggroll is right; the system doesn't work that way.
You could use ACL's in theory, but it would take a bit of doing and you'd have to set the right defaults so that new dirs/files get included.


All times are GMT -5. The time now is 06:22 AM.