patches/samba-05-smb.conf.default-add-machine-script-useradd.diff
author tom68
Mon, 06 Oct 2008 10:40:10 +0000
changeset 1411 8b53bb8a7b85
parent 1408 22ef21dba203
permissions -rw-r--r--
* SFEsamba.spec: .spec: mkdir samba/log/ directory for client logs patch5: syntax to useradd in add machine script - useradd still blames about "$" character, smart ideas needed * SFEconvmv.spec: *NEW* tool to convert filenames between codesets (iso8859/utf-8/...) and upper/lower_case (uses perl)

--- samba-3.2.4/examples/smb.conf.default.orig	2008-09-18 08:49:02.000000000 +0200
+++ samba-3.2.4/examples/smb.conf.default	2008-10-03 23:02:25.438408916 +0200
@@ -151,7 +151,7 @@
 # machine to add or delete corresponding unix accounts
 ;  add user script = /usr/sbin/useradd %u
 ;  add group script = /usr/sbin/groupadd %g
-;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
+;  add machine script = /usr/sbin/useradd -d / -g 1 -s /bin/false -c "Machine %u" %u
 ;  delete user script = /usr/sbin/userdel %u
 ;  delete user from group script = /usr/sbin/deluser %u %g
 ;  delete group script = /usr/sbin/groupdel %g