[Samba] %U doesn't work in root postexec

Paul Gienger pgienger at ae-solutions.com
Wed Apr 6 14:10:18 GMT 2005


> I've following in my smb.conf
>  root postexec = /bin/rm /hades/samba/netlogon/scripts/%U.bat

Have you tried using %u also?  There is a subtle difference between the 
two, and they actually use %u in the smb.conf man page for postexec.

> 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.


-- 
Paul Gienger                    Office: 701-281-1884
Applied Engineering Inc.
Systems Architect               Fax:    701-281-1322
URL: www.ae-solutions.com       mailto: pgienger at ae-solutions.com





More information about the samba mailing list