[Samba] add machine script option

Leandro Tracchia ltracchia at gmail.com
Fri May 16 19:55:22 GMT 2008

hi, thank you for replying... i do see an -m option which is for creating a
home directory. i am not actually using Red Hat, i am using the much talked
about Ubuntu 8.04. i believe Ubuntu is part of the Debian family. which
distro uses the -M option out of curiosity?? is it SUSE??

On Fri, May 16, 2008 at 1:26 PM, John H Terpstra <jht at samba.org> wrote:

> On Friday 16 May 2008 09:46:15 am Leandro Tracchia wrote:
> > i'm reading through the samba howto. section 6.2.3 (page 105) shows the
> add
> > machine script as follows:
> >
> > add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
> > /bin/false -M %u
> >
> > i have a problem with the -M option. i cannot find this option in
> useradd's
> > man page.
> >
> > can i assume this example is incorrect??
> >
> > what would be a correct example???
> I am the author of that document.  The problem is that on some Linux
> distributions the "-M" option is replaced with "-m" - it means to create
> the
> home directory if it does not exist.  In fact, if I am not mistaken, the
> reference you are referring to specifically relates to this command on Red
> Hat Linux. Corrct?
> FYI: In the real world I would probably NOT include the "-M" option.
> - John T.

More information about the samba mailing list