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

Ole Traupe ole.traupe at tu-berlin.de
Thu Oct 15 09:46:35 UTC 2015


Hi,

I am trying to automatically create nested zfs data sets as home 
directories. I have a script that works fine if I execute it manually as 
root (auth via public key). It also creates a short log file in the same 
dir.

However, this section in my smb.conf (on the DC) doesn't seem to execute 
(no data set created, no log file) on user logon (on a member server):

[homes]
        comment = User Home Directories
        browseable = no
        writable = yes
        root preexec = /usr/local/samba/scripts/createzfshome.sh %U

What might be the reason? Is this conflicting with rfc2307 use?

My DC's Samba version is 4.2.2 (on CentOS 6.7), my Samba member server 
(where the logon happens; either via ssh or with FreeNX terminal 
software) is Version 3.6.23.

Is Samba 3 a problem here?

Best,
Ole

-- 

Dr. Ole Traupe
Lab Manager

Technische Universität Berlin






More information about the samba mailing list