[Samba] %U doesn't work in root postexec
Robert Penz
robert.penz at outertech.com
Wed Apr 6 14:05:01 GMT 2005
Hi!
I've following in my smb.conf
root postexec = /bin/rm /hades/samba/netlogon/scripts/%U.bat
but I get following in my logfile:
[2005/04/06 13:55:39, 1] smbd/service.c:close_cnum(836)
hitt-006 (10.16.69.21) closed connection to service penzrobe
[2005/04/06 13:55:39, 1] smbd/service.c:close_cnum(836)
hitt-006 (10.16.69.21) closed connection to service netlogon
/bin/rm: cannot remove `/hades/samba/netlogon/scripts/.bat': No such file or
directory
[2005/04/06 13:55:56, 1] smbd/service.c:make_connection_snum(648)
hitt-006 (10.16.69.21) connect to service penzrobe initially as user
penzrobe (uid=1002, gid=100) (pid 9418)
[2005/04/06 14:07:53, 1] smbd/service.c:close_cnum(836)
hitt-006 (10.16.69.21) closed connection to service penzrobe
I'm using debian sarge and the samba package from it.
More information about the samba
mailing list