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

Rowland Penny rowlandpenny241155 at gmail.com
Wed Oct 21 12:52:09 UTC 2015


On 21/10/15 13:32, Ole Traupe wrote:
> Rowland, thanks for your effort, I highly appreciate it!
>
> From what I had read before...
>
> [home] would be an arbitrarily named share and its preexec command 
> would execute whenever a domain user connects to it
> [homes] is a special purpose section in the smb.conf that comes into 
> play whenever a domain user connects to his or her home dir defined on 
> the DC
>
> What MJ is telling seems to confirm this distinction.
>
>
>
>

If you read this Samba wiki page: 
https://wiki.samba.org/index.php/User_home_drives

It says this:

Do not name the share "[homes]", as this is a special share (see the 
smb.conf manpage)! 
<https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html> The 
"[homes]" share on an AD DC cannot handle the automatic folder creation 
we will setup below and as such will not work!

I am now beginning to believe the above is not true. Before a user can 
connect to their homeshare it must exist, it is the link to this, that 
Samba creates i.e. it changes '[homes]' to the username and connects to 
that. This is working for me on a Debian 4.1.17 DC just as it has always 
done on a member server, I just never tried it before.

Rowland



More information about the samba mailing list