Click to See Complete Forum and Search --> : adduser???


OliverW
09-09-2001, 09:05 AM
Okay I'm trying to set up Samba and I'm looking at the Samba NHF, but I have a few questions about adduser.

Okay I created the group smb and now would to like to add smbuser as test account for my sambaserver.

Okay according to the NHF i have to add smbuser with home directory /home/public and in group smb.

this is what i got


adduser --home /home/public --ingroup smb smbuser


According to the adduser help this should be the right syntax, but I get an error message like this:

adduser: No options allowed after names

But I specified the options before the username right?

What am I doing wrong?

[ 09 September 2001: Message edited by: OliverW ]

Choozo
09-09-2001, 09:35 AM
Don't know which distro you are running, but this is what I can deduce when running man adduser on my Mandrake 8.0 distro:

adduser -D -d /home/public -g smb smbuser

OliverW
09-09-2001, 09:56 AM
I'm using Debian and this is the help for adduser I got:

/home/olli# adduser --help
adduser [--home DIR] [--no-create-home] [--uid ID] [--firstuid ID]
[--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]
[--disabled-password] user
Add a normal user

adduser --system [--home DIR] [--no-create-home] [--uid ID] [--gecos GECOS]
[--group | --ingroup GROUP | --gid ID] [--disabled-password]
user
Add a system user

adduser --group [--gid ID] group
addgroup [--gid ID] group
Add a system group

adduser user group
Add an existing user to an existing group

Global configuration is in the file /etc/adduser.conf.
Other options are [--quiet] [--force-badname] [--help] [--version] [--conf
FILE].

[ 09 September 2001: Message edited by: OliverW ]

Linuxcool
09-09-2001, 11:35 PM
I'm not sure but the syntax could be:

adduser smbuser --home /home/public --ingroup smb