On Thu, Feb 09, 2006 at 12:24:00PM +0100, Christian Perrier wrote:
> > > retitle -8 Please add an example user addition script in default smb.conf
> > Bug#349050: corrections / clarifications to smb.conf
> > Changed Bug title.

> Attached is what I popose to deal with this issue.

> --- smb.conf.ori      2006-02-09 12:14:23.089472438 +0100
> +++ smb.conf  2006-02-09 12:20:39.876996034 +0100
> @@ -58,6 +58,21 @@
>  # option cannot handle dynamic or non-broadcast interfaces correctly.
>  ;   bind interfaces only = true

> +#### User management ####
> +
> +# User addition script
> +#
> +# This allows Unix users to be created ON DEMAND when a user accesses the
> +# Samba server and is validated
> +#
> +# does not work when 'security = share'
> +#
> +# The following command will create a user account and a disabled
> +# Unix password
> +# Please adapt to your needs
> +; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" 
> %u
> +
> +

What does this example script set the user's home directory to?  Does it
auto-create the home directory?  (Honestly don't know, I always look this up
before deploying uses of adduser anywhere.)  Is using nss_winbind a viable
alternative to needing to use the 'add user' script at all, and if so,
should it be preferred?

-- 
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/

Attachment: signature.asc
Description: Digital signature

Reply via email to