Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a confusion, let suppose there is a file, i want to give rwx rights to two users "User_A", & "User_B", "User_A" Belongs to "Group_A", & "User_B" Belongs to "Group_B". Now there are other users as well who belong to Group_A, & Group_B, how can it be done? Create another Group and set group rights? but i guess then if there are 1000s of files then i have to create that much groups?
Ps: I don't want file security management through GUI file manager.
I already mentioned this make no sense, let say i have file server, which contain 1000s files, and i have around 1000 users who access those files, some people want to give rights to some users some don't & even more complex scenario, some people want to give read access to one user, write access to other user, while no delete access. Like in windows it is not a big deal, but when i come to linux it become v hard to do so, yes i can use always some content management tools or so, but why can i do it in linux environment.
I guess ACLs might help here.
There you can specify several users and/or groups to have access to a file, not just one each, as is the case without ACLs.
Let me give you an example.
Let's say I have a file called MyFile, which is stored in a publicly accessible location.
I want only to grant access to myself and one other user (let's call the user sue).
So what I can do here is simply run setfacl -m u:sue:rwx MyFile and in addition to myself sue now has full access to the file, but nobody else (given that the "regular" permissions are set accordingly).