What about feature autocreate share when first connect occured? When new user added to domain and he/she first connecting to their home directory on fileserver, it created automatically, sets owner and rights. -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A
Rashid N. Achilov schrieb:> What about feature autocreate share when first connect occured? When new user > added to domain and he/she first connecting to their home directory on > fileserver, it created automatically, sets owner and rights.Try the option "root prexec" with something like "root preexec /root/bin/mkhome %u %g" and add it into your homes section. The script could look like this: if [ ! -d "/home/$1" ]; then mkdir /home/$1 chmod 700 /home/$1 chown -R $1:$2 /home/$1 if [ $2 == "group1" ]; then setquota -u -F vfsv0 $1 20100000 22000000 0 0 /dev/sdb2 else setquota -u -F vfsv0 $1 5242880 5767168 0 0 /dev/sdb2 fi fi