You are not logged in.

#1 2005-10-02 13:52:28

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Strange problem with usermod

I logged as root, and moded a user:

usermod -G audio,users,webadmin

Then I used groups to see if the operation was successful.

groups fluke

It showed:
audio users webadmin

But when I logged as fluke,

groups

I showed audio users, which was the same as that operation.

Why?

Offline

#2 2005-10-03 02:30:44

Centare
Member
Registered: 2005-10-02
Posts: 11

Re: Strange problem with usermod

If you were already logged in as fluke when you ran usermod, did you log out and back in before running groups as fluke?

Offline

#3 2005-10-03 09:14:33

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: Strange problem with usermod

I ran usermod as root
and then ran aroups fluke (still as root), showed correct qroups of fluke

Then, I logged as fluke, ran groups, I cant see any change, groups still  the same as before

Offline

#4 2005-10-03 17:44:28

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Strange problem with usermod

try:
gpasswd -a fluke audio
to add a user to a group.
And does the webadmin group exist (in /etc/group) ? If not, create one with groupadd.

Offline

#5 2005-10-07 13:43:17

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: Strange problem with usermod

Yes, gpasswd works for me. Thanks.

Offline

Board footer

Powered by FluxBB