Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-21-2003, 04:22 AM   #1
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Rep: Reputation: 15
changing group of a system user


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
Old 10-21-2003, 04:37 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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?

Old 10-21-2003, 04:39 AM   #3
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Why do u want to do that, unless and untill its specifically required dont change the system default user & group permissions.
Old 10-21-2003, 11:37 AM   #4
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Original Poster
Rep: Reputation: 15
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 ...
Old 10-21-2003, 11:39 AM   #5
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

Original Poster
Rep: Reputation: 15
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 ?)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM
Changing user group atze Linux - Newbie 12 06-08-2004 09:27 AM
Changing User Group Didn't Work ryancoolest Linux - Newbie 1 01-28-2004 08:55 PM
changing the group anwar_lpk Linux - Networking 2 05-08-2003 11:10 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration