[Samba] multi home dir locations
Muhammad Yousuf Khan
sirtcp at gmail.com
Wed May 23 11:22:48 MDT 2012
check this.
[ProfileShare]
comment = Roaming Profile Share
path = /nas/users/%D/%U
valid users = %U
read only = No
guest ok = No
browseable = yes
root preexec = /scripts/smbmkdir.sh %D %U
create mask = 4770
directory mask = 4770
store dos attributes = Yes
map archive = No
map system = No
map hidden = No
map readonly = no
<smbmkdir.sh>
#!/bin/bash
if [ ! -e /nas/users/$1/$2 ]; then
mkdir -p /nas/users/$1/$2
chown $2:admin-grp /nas/users/$1/$2
chmod 4770 /nas/users/$1/$2
fi
exit 0
On Wed, May 23, 2012 at 8:28 PM, steve <steve at steve-ss.com> wrote:
> On 05/23/2012 03:56 PM, Collen wrote:
>>
>> Hi all,
>>
>> i've got samba 3.6 joined to a ad domain (s4 in this case)
>> running winbind
>> all looks ok, but i ran into a problem (for us that is)
>>
>> i've got 2 groups (students and employes)
>> who have there home dirs in 2 different places.
>>
>> /home/students/<user>
>> /home/employ/<user>
>
>
> +1
> It's not just you:
> we have s3 connected to and s4 domain and we want e.g.
>
> /home2/students/year7
> /home2/students/year7/year7a/<student>
> /home2/students/year7/year7b/<student>
> /home2/staff
> /home2/staff<teacher>
>
> Under winbind we cannot see how to do it. So we have used the new
> nss-pam-ldapd instead and store the unixHomeDirectory in the directory. As
> it's available in both the 2008 and s4 schema it works quickly and
> efficiently. With the homeDirectory [share] and unixHomeDirectory being
> mapped by ldapd it works fine. Just like under 2008r2. I Really do think we
> should look into this being standard.
>
> Winbind has done a good job since 2000 but unless it can cope with new
> ideas. . . I'm sure it can. It's just not as easy.
> Please contact us personally for full details.
> Cheers,
> Steve.
> http://linuxcostablanca.blogspot.com.es/p/s4bind.html
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list