winbindd and user home creation

Gerald (Jerry) Carter jerry at samba.org
Sat Jan 5 07:32:03 GMT 2002


On Sat, 5 Jan 2002, Brian Whitehead wrote:

> Do you have a quick example of this?

[homes]
	root preexec = /usr/local/samba/bin/buildhome %U %H
	....


------- buildhome ----------------------------
#!/bin/sh

user=$1
home=$2

if [ ! -d $home ]; then
	mkdir -p $home
	chown $user $home
	## do other things like group ownership,
	## copy init files, etc...
fi






chau, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list