[Samba] smb.conf and adding users

Alfred Payne alfred at tcsn.co.za
Tue Apr 5 09:26:00 GMT 2005


Hi

So I've setup a Samba Server 3.0 , all working hunky dorey except the
creating of users on the fly.

Snippet from my smb.conf:

	passdb backend = tdbsam
	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/groupmod -A %u %g
	delete user from group script = /usr/sbin/groupmod -R %u %g
	add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u



How do I proceed to add users, and groups, and users to groups, etc? 
(Without manually typing the commands above)
SWAT does not seem to offer all of these options?

Thanks.





More information about the samba mailing list