Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When a user wants to add a new printer it's asking for a root password. I have an LTSP environment and the system is asking for a root password all the time; it's not asking even for a sudo'ed user's password. Is there any way to allow a certain user to add/edit/remove printers and not to have any other special access?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

Have a look at the files in /etc/cups.

I don't have a Fedora 15 system to hand - but looking at a recent RHEL box, the relevant bits are in /etc/cups/cupd.conf

....
# Administrator user group...
SystemGroup sys root
....
# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>
....
 # All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer 
     Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs 
     Release-Held-New-Jobs Deactivate-Printer Activate-Printer 
     Restart-Printer Shutdown-Printer Startup-Printer Promote-Job 
     Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer 
     CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs 
     CUPS-Reject-Jobs CUPS-Set-Default>
  AuthType Basic
  Require user @SYSTEM
  Order deny,allow
</Limit>

IIRC, @SYSTEM is macro for the groups listed in SystemGroup.

share|improve this answer
add comment

Add the user to the lp group. If that doesn't work, check ls -l /dev/_your_printer_ and see which group owns it

share|improve this answer
    
Thank you! Currently the problem is that so the printers are network printers. And not local. So they wouldn't appear in /dev/ folder. –  bakytn Sep 20 '11 at 6:17
    
are you using cups? if yes - adding user to lp group and managing printer via cups should solve problem –  vasily-vm Sep 20 '11 at 6:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.