LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon
User Name
Password
Sabayon This forum is for the discussion of Sabayon Linux.

Notices


Reply
  Search this Thread
Old 08-24-2009, 11:50 AM   #1
hadibg
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
What are the default groups root belongs to?


Hey all,

I did a newbie mistake - I did not read the usermod manual thoroughly.
I wanted to add the root user to an existing group - himerge.
I used
Code:
usermod -G himerge root
By Murphy's law my battery
died right after I realized what I had done.
I still have root access and haven't noticed any problems yet, but I am worried.
Can someone please list the default groups, that root is a member of, so I can add root back?
I use sabayon 4.2, kernel 2.6.29.
Thanks.
 
Old 08-24-2009, 02:42 PM   #2
f14f21
Member
 
Registered: Sep 2008
Distribution: rhel
Posts: 42

Rep: Reputation: 6
#cat /etc/group | grep root
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
disk:x:6:root
wheel:x:10:root

so
#usermod -G himerge,root,bin,daemon,sys,disk,adm,wheel root
 
Old 08-25-2009, 06:38 AM   #3
hadibg
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you very much.
I just did that and now root is as it should be.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
groups (system default groups) Xavius Linux - General 2 07-18-2012 02:50 AM
default groups - which are ok to delete? dcyfer Slackware 2 01-30-2007 09:20 PM
default groups zowey Ubuntu 3 08-22-2006 12:05 PM
Default user groups Markup Linux - General 4 08-15-2005 04:08 AM
default groups root belongs too Hcman Slackware 2 05-26-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon

All times are GMT -5. The time now is 04:19 PM.

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