diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-16 21:12:44 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-16 21:12:44 +0000 |
commit | 338889379d1b493059f4ff9dc1c0938c7d4e3639 (patch) | |
tree | ffc7e52f25f7fb2aa53bdae67b7a589595d52941 /packaging/Mandrake/smb.conf | |
parent | 9903a9d88ad70151b2f45552ece31c0ebd0fba81 (diff) | |
download | samba-338889379d1b493059f4ff9dc1c0938c7d4e3639.tar.gz samba-338889379d1b493059f4ff9dc1c0938c7d4e3639.tar.bz2 samba-338889379d1b493059f4ff9dc1c0938c7d4e3639.zip |
packaging updates from Buchan
(This used to be commit 8079494aef23105ce4d1ab8d7f943a838baaca01)
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 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 |