[Samba] Use Samba with ACL for read Active Directory and set Permissions via it.
Jason Long
hack3rcon at yahoo.com
Sat Dec 27 00:30:15 MST 2014
No, When I use "chown jason /home/local/jasondomain/jason/test", Linux show me an error about "jason" account and show "invalid user", But when I use "jasondomain\\jason" it is OK but I can't Open share via this user on Windows OS. I also used "chown jasondomain\\jason:jasondomain\\mygroup /home/local/jasondomain/jason/test" but have same problem :(.
On Friday, December 26, 2014 3:11 PM, jacek burghardt <jaceksburghardt at gmail.com> wrote:
I use this script to create folders for users #!/bin/bash
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/$2fiexit 0 [global] template shell = /bin/bash template homedir = /data/homes/%D/%U root preexec = /usr/bin/mkhomedir.sh %D %U
SO what happens when you chown jason /home/local/jasondomain/jason/test is jason also listed in /etc/password there could be a conflict
More information about the samba
mailing list