diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-16 21:11:16 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-16 21:11:16 +0000 |
commit | 38e565fe0181bb1892662fa11eee17798b386f5c (patch) | |
tree | d7f7b709eebc80582456491055542c725cb26b1a /packaging/Mandrake/smb.conf | |
parent | 4765e56f92f0906afe3073184c4fa255e1b1a647 (diff) | |
download | samba-38e565fe0181bb1892662fa11eee17798b386f5c.tar.gz samba-38e565fe0181bb1892662fa11eee17798b386f5c.tar.xz samba-38e565fe0181bb1892662fa11eee17798b386f5c.zip |
packaging updates from Buchan
Diffstat (limited to 'packaging/Mandrake/smb.conf')
-rw-r--r-- | packaging/Mandrake/smb.conf | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/packaging/Mandrake/smb.conf b/packaging/Mandrake/smb.conf index 6024442ecdb..6ea66351913 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 |