[Samba] Samba-3 by example Ch.3

John H Terpstra jht at Samba.Org
Fri May 13 16:08:13 GMT 2005


On Friday 13 May 2005 06:19, Koenraad Lelong wrote:
> Hi,
> I'm following chapter 3 (from the web-site), and I copied and pasted the
> smb.conf file. I corrected an error (I think) : passwd chat = *New*... :
> the "=" was missing and then "*New*..." was on the following line.
> Then I ran testparm -s, and I got an error :
> ERROR: the 'passwd program' () requires a '%u' parameter.
> I seem unable to solve this. Any pointers ?
> TIA

This book is in copy edit at this time. The actual file is attached.

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.
-------------- next part --------------
# Global parameters
[global]
	workgroup = PROMISES
	netbios name = DIAMOND
	interfaces = eth1, eth2, lo
	bind interfaces only = Yes
	passdb backend = tdbsam
	pam password change = Yes
	passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n *Password*changed*
	username map = /etc/samba/smbusers
	unix password sync = Yes
	log level = 1
	syslog = 0
	log file = /var/log/samba/%m
	max log size = 50
	smb ports = 139 445
	name resolve order = wins bcast hosts
	time server = Yes
	printcap name = CUPS
	show add printer wizard = No
	add user script = /usr/sbin/useradd -m '%u'
	delete user script = /usr/sbin/userdel -r '%u'
	add group script = /usr/sbin/groupadd '%g'
	delete group script = /usr/sbin/groupdel '%g'
	add user to group script = /usr/sbin/usermod -G '%g' ''%u'
	add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null '%u'
	shutdown script = /var/lib/samba/scripts/shutdown.sh
	abort shutdown script = /sbin/shutdown -c
	logon script = scripts\logon.bat
	logon path = \\%L\profiles\%U
	logon drive = X:
	logon home = \\%L\%U
	domain logons = Yes
	preferred master = Yes
	wins support = Yes
	utmp = Yes
	winbind use default domain = Yes
	map acl inherit = Yes
	printing = cups
	veto files = /*.eml/*.nws/*.{*}/
	veto oplock files = /*.doc/*.xls/*.mdb/

[IPC$]
	path = /tmp
	hosts allow = 192.168.1.0/24, 192.168.2.0/24, 127.0.0.1
	hosts deny = 0.0.0.0/0

[homes]
	comment = Home Directories
	valid users = %S
	read only = No
	browseable = No

[printers]
	comment = SMB Print Spool
	path = /var/spool/samba
	guest ok = Yes
	printable = Yes
	use client driver = Yes
	default devmode = Yes
	browseable = No

[netlogon]
	comment = Network Logon Service
	path = /var/lib/samba/netlogon
	guest ok = Yes
	locking = No

[profiles]
	comment = Profile Share
	path = /var/lib/samba/profiles
	read only = No
	profile acls = Yes

[accounts]
	comment = Accounting Files
	path = /data/accounts
	read only = No

[service]
	comment = Financial Services Files
	path = /data/service
	read only = No

[apps]
	comment = Application Files
	path = /apps
	admin users = bjones
	read only = No


More information about the samba mailing list