usermod help

Veroland

Executive Member
Joined
Aug 24, 2005
Messages
6,525
Reaction score
455
Location
South Crest, Alberton
Hi

I have a weird thing here (or it's just me)

I run usermod as root to add a user to groups: #usermod -A uucp,dialout username

Everything is fine even after I close the root session but as soon as my user logs out and in again the group memberships is gone. :confused::confused:

Am I misunderstanding usermod?

Thanks
 
You need use the -G (note that -G is case sensitive. -g means something else) option. It'll be something like:
usermod -a -G uucp,dialout username

Group information is strored in /etc/group. So you can just add your user to the last column in the group if you're having problems with usermod.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X