> > 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
+
+
 
 
 #### Debugging/Accounting ####

Reply via email to