[Samba] Can't get 'root preexec' to run
Rowland Penny
rowlandpenny241155 at gmail.com
Wed Oct 21 18:01:11 UTC 2015
On 21/10/15 18:19, Ole Traupe wrote:
> Well, I do. That is not the problem.
>
> The problem was that I wasn't used to have user homes to be shares
> themselves. And when I share \\server\home and want to have the folder
> \\server\home\newuser to be auto-created, but I actually connect to
> the share [home] (\\server\home), this section in the smb.conf is
> always found and so the special [homes] section is never executed
> (cloned).
>
> I'll report tomorrow.
>
> Ole
>
>
When you connect from windows to a '[homes]' share on a Unix machine,
you might think you are connecting to \\server\home\newuser, but what
happens is that Samba changes 'homes' to the users name and uses the
contents of 'unixHomeDirectory' as the path to the share. Using '[home]'
is similar but like an ordinary share, you must give a path in the
share. The path in '[home]' or 'unixHomeDirectory' must be entered in
Unix format and does not state the servername as it will only work on
the machine that Samba is running on, this means that the path must be
something like '/home/newuser'.
So when you connect from windows using '\\server\home\newuser' to a
'[homes]' share and the user has a 'unixHomeDirectory' attribute
containing '/home/newuser', you are really connecting to the directory
/home/newuser on the Samba server that holds the '[homes]' share.
Rowland
More information about the samba
mailing list