[Samba] Home auto creation

jacek burghardt jaceksburghardt at gmail.com
Sun Dec 21 17:55:09 MST 2014

Well that is great way of doing it. I read
https://help.ubuntu.com/community/ADWin2k8KerberosLDAP and used this script

if [ ! -e /data/homes/$1/$2 ]; then
        /usr/bin/mkdir -p /data/homes/$1/$2
        /usr/bin/chown "$2":"Domain Users" /data/homes/$1/$2
        /usr/bin/chmod g+s /data/homes/$1/$2
        /usr/bin/chmod 770 /data/homes/$1/$2
        /usr/bin/setfacl -m g:"domain admins":rwx /data/homes/$1/$2
        /usr/bin/setfacl -m u:"$2":rwx /data/homes/$1/$2

exit 0
It works but your solution it is much easier.

More information about the samba mailing list