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

Ole Traupe ole.traupe at tu-berlin.de
Tue Oct 20 08:35:52 UTC 2015


Meanwhile I managed to search the thread titles of the last 5 years 
manually for "preexec". Is there a better solution for accessing the 
archive of this list?
--

Still I can't get the DC's [homes] section's 'preexec' command to run on 
user logon (on one of the domain member PCs). Selinux on the DC is off, 
of course. I also tried the log-on on a Win7 domain member instead of 
linux, but still no sign of the script running: my log file is not 
created; zfs data sets neither. I made sure that the log file is created 
even if zfs data set creation fails to some reason.

What might be interfering with this? I read the explanation of the 
'preexec' command in the manpages but there is no direct reference to 
its use in the [homes] section.

Even remote ideas would be most welcome!

Ole


Am 15.10.2015 um 12:05 schrieb Ole Traupe:
> 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
>
>
>

-- 

Dr. Ole Traupe

Lab Manager

Technische Universität Berlin
Biopsychologie und Neuroergonomie
Institut für Psychologie und Arbeitswissenschaft

Biological Psychology and Neuroergonomics
Department of Psychology and Ergonomics

Postanschrift/Mail to:

TU Berlin
Sekr. MAR 3-2
Marchstr. 23
10587 Berlin
GERMANY

Zimmer/Office: MAR 3.052
Telefon/Phone: (+49) 030 314 22721
Fax: (+49) 030 314 25274

E-Mail: ole.traupe at tu-berlin.de
www.bpn.tu-berlin.de





More information about the samba mailing list