Here is the situation:
- I want user usr to have the same permissions of a group grp, anywhere in the system.
- grp is not a local group, it comes from a LDAP server, of which I have no control over.
I don't have much experience with Linux, so I did some research and found two possible ways to accomplish this:
- Create a local group with the same name and make usr a part of it. However, I'm not too sure about how this would impact remote users from the original grp. Would I need to make changes to the NSS configuration file in order for this to work correctly? In that case, what should the configuration be?
- Use ACL to give usr permissions. My problem with this is that it seems kind of complicated. As far as I know, there's no automatic way to do what I want, I would have to make a script that traverses the filesystem, checking the group permissions of every file and directory, and then giving usr the same permissions. Am I missing something or this would be the only way?