[Samba] samba home folder share
NdK
ndk.clanbo at gmail.com
Mon May 28 02:29:01 MDT 2012
Il 13/05/2012 18:38, Jorell ha scritto:
> here is what I use in my conf
> [ProfileShare]
> ...
> 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
Just a quick question: is the ACL needed only for local users (logged on
server, or accessing an NFS share) or for Samba users too?
Since I won't let users directly logon to the server but only via Samba,
I'd prefer to avoid ACL overhead if possible.
Tks,
Diego.
More information about the samba
mailing list