Re: Restricting access to [homes]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



here is what I use in my conf
[ProfileShare]
...
path = /home/%D/%U
root preexec = /root/pdc/smbmkhomedir.sh %D %U
...



< smbmkhomedir.sh >
#!/bin/bash
if [ ! -e /home/$1/$2 ]; then
    mkdir -p /home/$1/$2
    chown $2:"Domain Users" /home/$1/$2
    chmod 4711 /home/$1/$2
setfacl --set=d:u::rwx,d:g::--x,d:o::---,d:u:$2:rwx,d:g:'domain users':--x /home/$1/$2
fi
exit 0


instead of using 'valid users' maybe try setting "path = /home/%S"

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Linux]     [Info Cyrus]     [LARTC]     [Bugtraq]     [Netfilter]     [Internet Dating Forums]     [RAID]     [Yosemite News]     [Photography]

Add to Google Powered by Linux