Basanta Shrestha wrote:

> Hi List,
> Can any help me? I use debian. I need to add a new user which would be
> member of multiple groups. I have to do this using simple "adduser
> $username" command( without using "usermod" command . Here is my
> /etc/default/useradd file

I don't have that file on my system.  What package did it come from? 
(According to man adduser the relevant file is "/etc/adduser.conf".)

>> GROUP=100
>> HOME=/home
>> INACTIVE=-1
>> EXPIRE=
>> SHELL=/bin/bash
>> SKEL=/etc/skel
>> GROUPS=audio
> 
> The user is not added to the audio group.

If you've already created the user bob (for example) and want to add group
audio to his account:

# adduser bob audio

According to man adduser:
"adduser [options] user group"
and
"If called with two non-option arguments, adduser will add an existing user
to an existing group."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to