LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
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
 
Old 10-21-2003, 03:37 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 10-21-2003, 03:39 AM   #3
jayakrishnan
Member
 
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, 10:37 AM   #4
porous
Member
 
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, 10:39 AM   #5
porous
Member
 
Registered: Oct 2003
Distribution: redhat 9
Posts: 147

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


Reply


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 01:14 PM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-12-2005 11:16 PM
Changing user group atze Linux - Newbie 12 06-08-2004 08:27 AM
Changing User Group Didn't Work ryancoolest Linux - Newbie 1 01-28-2004 07:55 PM
changing the group anwar_lpk Linux - Networking 2 05-08-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 AM.

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