summaryrefslogtreecommitdiff
path: root/packaging/Mandrake/smb.conf
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-16 21:11:16 +0000
committerGerald Carter <jerry@samba.org>2003-09-16 21:11:16 +0000
commit42e1b7c29b693249e72c96a6a7539aa4056301f5 (patch)
treef1acc5108bd3a7d1a08065b3ae86fb43b6ca4609 /packaging/Mandrake/smb.conf
parentbf4ab61d579e0c6b75056493fa792705b77f44fc (diff)
downloadsamba-42e1b7c29b693249e72c96a6a7539aa4056301f5.tar.gz
samba-42e1b7c29b693249e72c96a6a7539aa4056301f5.tar.bz2
samba-42e1b7c29b693249e72c96a6a7539aa4056301f5.zip
packaging updates from Buchan
(This used to be commit 38e565fe0181bb1892662fa11eee17798b386f5c)
Diffstat (limited to 'packaging/Mandrake/smb.conf')
-rw-r--r--packaging/Mandrake/smb.conf33
1 files changed, 29 insertions, 4 deletions
diff --git a/packaging/Mandrake/smb.conf b/packaging/Mandrake/smb.conf
index 6024442ecd..6ea6635191 100644
--- a/packaging/Mandrake/smb.conf
+++ b/packaging/Mandrake/smb.conf
@@ -212,10 +212,30 @@
# impacts where Win2k finds it's /HOME share
; logon home = \\%L\%U\.profile
+
# The add user script is used by a domain member to add local user accounts
-# that have been authenticated by the domain controller.
-# Script for domain member for adding local accounts for authenticated users:
-; add user script = /usr/sbin/useradd -s /bin/false %u
+# that have been authenticated by the domain controller, or when adding
+# users via the Windows NT Tools (ie User Manager for Domains).
+
+# Scripts for file (passwd, smbpasswd) backend:
+; add user script = /usr/sbin/useradd -s /bin/false '%u'
+; delete user script = /usr/sbin/userdel '%s'
+; add user to group script = /usr/bin/gpasswd -a '%u' '%g'
+; delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
+; set primary group script = /usr/sbin/usermod -g '%g' '%u'
+; add group script = /usr/sbin/groupadd %g && getent group '%g'|awk -F: '{print $3}'
+; delete group script = /usr/sbin/groupdel '%g'
+
+# Scripts for LDAP backend (assumes nss_ldap is in use on the domain controller,
+# and needs configuration in smbldap_conf.pm
+; add user script = /usr/share/samba/scripts/smbldap-useradd.pl '%u'
+; delete user script = /usr/share/samba/scripts/smbldap-userdel.pl '%u'
+; add user to group script = /usr/share/samba/scripts/smbldap-groupmod.pl -m '%u' '%g'
+; delete user from group script = /usr/share/samba/scripts/smbldap-groupmod.pl -x '%u' '%g'
+; set primary group script = /usr/share/samba/scripts/smbldap-usermod.pl -g '%g' '%u'
+; add group script = /usr/share/samba/scripts/smbldap-groupadd.pl '%g' && /usr/share/samba3/scripts/smbldap-groupshow.pl %g|awk '/^gidNumber:/ {print $2}'
+; delete group script = /usr/share/samba/scripts/smbldap-userdel.pl '%g'
+
# The add machine script is use by a samba server configured as a domain
# controller to add local machine accounts when adding machines to the domain.
@@ -360,7 +380,11 @@
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
-
+# This script can be enabled to create profile directories on the fly
+# You may want to turn off guest acces if you enable this, as it
+# hasn't been thoroughly tested.
+;root preexec = PROFILE=/var/lib/samba/profiles/%u; if [ ! -e $PROFILE ]; \
+; then mkdir -pm700 $PROFILE; chown %u.%g $PROFILE;fi
# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
@@ -404,6 +428,7 @@
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
+# Note that this only works if 'printcap name' is *not* set to 'cups'
[pdf-generator]
path = /var/tmp