Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Highlands
Guru
Guru


Joined: 22 Apr 2003
Posts: 366
Location: Sundsvall, Sweden

PostPosted: Fri Jun 20, 2003 8:28 am    Post subject: User Reply with quote

How do I add a group to a user?
_________________
If Windows is the answer, you don't understand the question!
http://counter.li.org/cgi-bin/certificate.cgi/339446
Back to top
View user's profile Send private message
chrispy
Apprentice
Apprentice


Joined: 10 Nov 2002
Posts: 228
Location: Tokyo

PostPosted: Fri Jun 20, 2003 8:32 am    Post subject: Reply with quote

open /etc/group in your favorite editor

check the line of the group to which you want to add a user, and append that username to the end of that line.

example :
Code:
wheel::10:root


then add another user to that group :
Code:
wheel::10:root,chrispy


cheers
Back to top
View user's profile Send private message
qubex
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2003
Posts: 133
Location: Portland

PostPosted: Fri Jun 20, 2003 10:48 am    Post subject: Reply with quote

You can also use the usermod command like so:

# usermod -G group1,group2,group3 username

Although granted, you have to specify ALL the groups you want the user to be a part of as I think if you don't it removes all but the groups you just specified.

M
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum