Odd preexec/root preexec behavior

Kris Jordan krisj at owt.com
Thu Nov 29 01:06:07 GMT 2001


Running Samba 2.2.2, having troubles with preexec when it involves the 
path parameter:

Log on to the samba server as kris, user "users".
%U expands to kris, %G expands to users.

[profile]
    path = /data/profile/%U
    preexec = /bin/mkdir -m 700 /data/profile/%U
    writable = yes
    create mode = 0600
    directory mode = 0700

This fails to work, Samba reports that it could not open 
/data/profile/kris. Replacing preexec with "root preexec = /bin/mkdir -m 
700 /data/profile/%U; chown %U:%G /data/profile/%U" fixes the problem, 
but it does not explain what the problem with preexec is. If I remove %U 
from the path parameter, preexec works, the directory does shows up, but 
I don't it set-up this way of course.

I found a bug report about preexec not working, but supposedly it has 
been fixed in 2.2.1.

Thanks

- Kris Jordan -





More information about the samba mailing list