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
path = /home/%D/%U
root preexec = /root/pdc/ %D %U

< >
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
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

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

Add to Google Powered by Linux