[Samba] can't pause a samba shared printer from w2k pc

daniel.jarboe at custserv.com daniel.jarboe at custserv.com
Wed Aug 7 11:54:02 GMT 2002


Two questions...

My only luck, for being able to pause the printers from w2k has been 
with root = MY_DOMAIN+jarboed in the usermap file.  How can I do it 
without a mapping of each printer admin to root in the usermap file?

Also, looks like I can't unpause the printer from w2k.  Though the 
printer queue would pause on linux (if the user was mapped to root, 
which I hope is not the only way to make that work), w2k still shows it 
the printer status as Ready, and "resume" is not in the pop-up menu 
because w2k doesn't know the printer is paused.  So print admin won't be 
able to unpause the printer from w2k, because it doesn't know it isn't 
paused to begin with?

Can samba not do this (RPM install, 2.2.5-1), or is it something funky 
with my installation?

Thanks,
Daniel


daniel.jarboe at custserv.com wrote:

> Getting a little further...
>
> If I didn't have the printer admin line in the share, or I do not 
> specify a queuepause command, when I try to pause from w2k I get: "You 
> do not have permissions to modify the settings for this printer. If 
> you need to change the settings, contact your network administrator."
>
> When I specified a script file instead, the script was run.  %p 
> evaluated correctly, BUT I checked the uid and euid which were both 
> 10000, from winbind.  The lpc start (printqueue) and lpc stop 
> (printqueue) don't work from a non-priveledged user.  So the 
> queuepause and queueresume command run with the priveledges of the 
> user who logs in?  How can I avoid this behavior, and have it run as 
> root from samba, like it needs to be for printer admins?
>
> Thanks,
> Daniel
>
>
> vansickj-eodc at Kaman.com wrote:
>
>> Daniel,
>>
>>  Try remarking out (#) the printer admin line,
>> and see what happens.
>>
>>  Don't forget to restart the samba services after
>> you make the change.
>>
>> Jim
>>
>>> -----Original Message-----
>>> From: daniel.jarboe at custserv.com [mailto:daniel.jarboe at custserv.com]
>>> Sent: Wednesday, August 07, 2002 6:50 AM
>>> To: samba at lists.samba.org
>>> Subject: [Samba] can't pause a samba shared printer from w2k pc
>>>
>>>
>>> Running samba installed from rpm 2.2.5-1 on rh 7.2 system... 
>>> security=domain with winbind to NT pdc, LPRng
>>>
>>> Trying to pause printing without specifying a queuepause command I get:
>>> You do not have permissions to modify the settings for this 
>>> printer.  If you need to change the settings, contact your network 
>>> administrator.
>>>
>>> With
>>>   queuepause command = /usr/sbin/lpc stop %p
>>>   queueresume command = /usr/sbin/lpc start %p
>>> I do not get that error, but nothing happens... a lpc status for 
>>> that printer shows printing and spooling still enabled, and the 
>>> status from w2k still shows Ready.
>>>
>>> What am I doing wrong?
>>>
>>> Applicable parts of my smb.conf:
>>>
>>> [global]
>>>  printing=lprng
>>>  printcap name = /etc/printcap
>>>  load printers = yes
>>> ...
>>>
>>> [printers]
>>>   comment = All Printers
>>>   path = /var/spool/samba
>>>   printable = yes
>>>   printer admin = "MY_DOMAIN+jarboed, MY_DOMAIN+user2"
>>>
>>> [HPLJCov]
>>>   comment = Cover Page HP LaserJet IIISi
>>>   printable = Yes
>>>   printer = HPLJCov
>>>   printer driver = HP LaserJet IIISi
>>>   printer admin = "MY_DOMAIN+jarboed, MY_DOMAIN+mcginnig"
>>>   path = /var/spool/samba
>>>   queuepause command = /usr/sbin/lpc stop %p
>>>   queueresume command = /usr/sbin/lpc start %p
>>>
>>> Thanks,
>>> Daniel
>>>
>>> -- 
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  http://lists.samba.org/mailman/listinfo/samba
>>>
>
>





More information about the samba mailing list