The "-n" option is Red Hat specific.
From the manpage :
-n
A group having the same name as the user being added to the system
will be created by default. This option will turn off this Red Hat
Linux specific behavior. When this option is used, users by default
will be placed in whatever group is specified in /etc/default/
useradd. If no default group is defined, group 1 will be used.
/var/lib/samba seems a good option for machine account.
Thanks.
Le 7 janv. 06 à 08:53, Steve Langasek a écrit :
On Fri, Jan 06, 2006 at 06:15:24PM +0100, Christian Perrier wrote:
Here is the example command for the "add machine script" option
in smb.conf
manpage :
add machine script = /usr/sbin/adduser -n -g machines -c Machine -
d /var/lib/nobody -s /bin/false %u
It do not work for two reasons :
1. Unlike Red Hat systems, adduser is not useradd , and these
parameters
are for useradd.
2. the option "-n" do not exist for useradd ( neither for adduser )
Seems right.
I think that our example should be reverted to useradd which is more
likely to be installed on all systems than adduser (useradd comes
with
passwd, which was "virtually Essential" up to recently and which we
could soon turn into Essential).
Moreover, this would leave the example in Debian as close as possible
to genuine installs.
I don't know what the "-n" option is intended for, though.
The "-d" parameter should also be changed as /var/lib/nobody does not
exist on Debian systems (Steve, advice? /nonexistent just like the
"nobody" account?)
IMHO, it's better for such accounts to have a real, non-writable home
directory. Perhaps /var/lib/samba?
--
Steve Langasek Give me a lever long enough and a
Free OS
Debian Developer to set it on, and I can move the
world.
[EMAIL PROTECTED] http://
www.debian.org/