LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   changing group of a system user (https://www.linuxquestions.org/questions/linux-general-1/changing-group-of-a-system-user-106614/)

porous 10-21-2003 03:22 AM

changing group of a system user
 
hi

is it possible to change the group of system user
like /sbin/shutdown .

can i do it with usermod ,

what happens if i change the group info in /etc/passwd
will it make the program not execute...

(*i dont want to change the owner but only the group)

thx in advance

MasterC 10-21-2003 03:37 AM

Not sure I follow...

Do you mean that you have a user (ted) that belongs in a group (sales) and you want to remove that user from that group?
usermod -G sales ted

OR, do you mean that you have a group (superusers) that the user belongs to that you want to give the group permissions on a service, but not limit it to just a user:
chgrp superusers /sbin/shutdown

Could you clarify what you want so we/I can give you a more appropriate answer? :)

Cool

jayakrishnan 10-21-2003 03:39 AM

Why do u want to do that, unless and untill its specifically required dont change the system default user & group permissions.

porous 10-21-2003 10:37 AM

nope what i meant was when i checked /etc/passwd i saw a userid (6) for shutdown on my rh9 , and it belonged to the group root .

now i wanted to know whether to change the group of shutdown to someother group ...

porous 10-21-2003 10:39 AM

Quote:

Originally posted by MasterC


chgrp superusers /sbin/shutdown


masterC what will this do , will it give the users in the group superusers the power to shutdown , (but shutdown requires root previlages to execute ,am i wrong ?)


All times are GMT -5. The time now is 05:16 PM.