[Samba] pre-/postexec in printers-section

Tobias.Gerndt at EnBW.com Tobias.Gerndt at EnBW.com
Fri Dec 6 19:46:00 GMT 2002


Hi,
after updating our printserver from Samba V2.0.6 to V2.2.7 I encountered the
following problem.
Samba does not execute the (root) pre- and postexec within the printers
section.
If you are using these command in another section everything works fine.
Does anybody know if these command are not supported in the printers section
anymore?

smb.conf:
[global]
...
   load printers = yes
   lpq cache time = 30
   print command = lpr -r -P%p %s
   printcap name = /etc/printcap
   printing = bsd
...
[printers]
   comment = Alle Drucker
   browseable = no
   printable = yes
   public = yes
   path = /var/spool/samba/%d
   create mode = 0700
   lpq command = lpq -P%p
   root preexec = mkdir -p /var/spool/samba/%d; chmod 700
/var/spool/samba/%d; chown %u: /var/spool/samba/%d
   root postexec = rm -rf /var/spool/samba/%d

BTW how can I check execution of preexec-commands? I didn't find entry in
%m.log ...  :-(

Regards,
> Tobias Gerndt
> 



More information about the samba mailing list