LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   granting permissions to a few users in a group (https://www.linuxquestions.org/questions/linux-general-1/granting-permissions-to-a-few-users-in-a-group-455487/)

grondar69 06-16-2006 03:09 PM

granting permissions to a few users in a group
 
Hi all,

Is there any way to set permissions so that only 2 users of a group have full control of a directory and the rest of the group have none?

Thanks in advance

ilikejam 06-16-2006 04:24 PM

Hi.

Nope. You'll have to create another group with those two users as members.

Dave

grondar69 06-16-2006 05:20 PM

Thanks, I've got that working. Now my problem is that the permissions on the directory aren't carrying though to the files. I did a chmod 6770 on the directory and I want that to carry through to any files that either user in the group creates/modifies.

Tinkster 06-17-2006 02:21 AM

chmod -R <perms> <dir> should do the trick.


Cheers,
Tink

osor 06-17-2006 10:37 AM

Quote:

Originally Posted by grondar69
Hi all,

Is there any way to set permissions so that only 2 users of a group have full control of a directory and the rest of the group have none?

Thanks in advance

You either have to use something like ACLs or give those two users secondary groups.

grondar69 06-20-2006 10:36 AM

Quote:

Originally Posted by Tinkster
chmod -R <perms> <dir> should do the trick.


Cheers,
Tink

thanks, that worked fine for changing the files currently in the directory, but any new files created after that don't have the same permissions.

ethics 06-20-2006 10:49 AM

you can use umask for setting future permissions

grondar69 06-22-2006 06:51 PM

Quote:

Originally Posted by osor
You either have to use something like ACLs or give those two users secondary groups.

The ACL method did exactly what I wanted, I was able to set permissions for specific users in a group without creating a secondary group for each user. Thanks for all the help.


All times are GMT -5. The time now is 08:12 PM.