[Samba] Can't get 'root preexec' to run

Rowland Penny rowlandpenny241155 at gmail.com
Thu Oct 22 10:46:26 UTC 2015


On 22/10/15 11:28, Ole Traupe wrote:
>
>
> Am 22.10.2015 um 12:09 schrieb Rowland Penny:
>> On 22/10/15 10:37, Ole Traupe wrote:
>>> Rowland, what are [homes] shares on a Unix machine?
>>
>> It is described in the smb.conf manpage, but briefly if you try to 
>> connect to a share called 'username' and samba knows nothing about a 
>> share called 'username' it checks if there is a user called 'username'.
>
> Rowland, you are stating *exactly* what I was repeating several times 
> now!!
>
>
>> If this user exists, it obtains the users Unix homedir and uses this 
>> for the share name and path. So if there is a user called 'username' 
>> and there is a share called '[homes]' in smb.conf, then the users 
>> homedir is obtained, on a DC this will be '/home/DOMAIN/username' 
>> unless 'template homedir = ' is set to in smb.conf, on a domain 
>> member, winbind will use the contents of the 'unixHomeDirectory' 
>> attribute, but this *must* be a local path.
>
> Yes, I know.
>
>>
>>>
>>> What you describe seems to be mostly correct. However, in my eyes 
>>> there is no such thing as a collection of [homes] shares. This 
>>> section gets invoked whenever a non-existing share is requested. 
>>> Thats what the man pages say (with many complicated words) and what 
>>> I just confirmed here. It even works, if you put 
>>> \\servername\%username% as home path in the "Profiles" tab of the 
>>> ADUC (applies right when you click ok).
>>
>> Profiles have *nothing* to do with home directories.
>
> In know that! But in ADUC, the darn tab is just *named* that way! Go 
> lok it up!
>

That is not where you set the Unix home directory, yes there is a 
heading called 'home folder' on the 'Profiles' tab, but you should be 
using the 'Home directory' box on the 'UNIX Attributes' tab.

Rowland



More information about the samba mailing list