On Mon, 2001-10-22 at 02:12, Danie Roux wrote:
> I have a print system working with samba. I have now created a user
> "printing" and moved all of the scripts to it's /home/printing. 
> 
> How do I tell samba to execute the print command as user printing
> instead of the user that has authenticated to the print share?
> 
> [printers]
>    ...
>    ; This must execute as user printing
>    print command = /home/printing/smb_print_wrapper %s %m %u %T %p
> 

Could you setuid on the smb_print_wrapper for your printing user?

<disclaimer type=bad hack/security risk>
I'm not sure if it's a good idea but you could also "su" to the printing
user in your print command if ALL ELSE FAILS, AND YOU"RE REALLY
DESPERATE (emphasis intentional).
</disclaimer>

--mike


Reply via email to