LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2020, 05:29 AM   #1
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Rep: Reputation: Disabled
limit only root to can do restart job CUPS


i added this line in cupsd.conf (and delete Restart-Job lines in file and left only this under)

Code:
1
<Limit Restart-Job>
2
Require user root
3
Order deny,allow
4
</Limit>
Idea is that only root must have access to restart-job, not regular users.
But this is not working, where is mistake..
 
Old 10-24-2020, 01:31 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Did you restart the cups service after making the change?
 
Old 10-25-2020, 08:35 AM   #3
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Did you restart the cups service after making the change?
Yes I am.
 
Old 10-25-2020, 03:59 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
1. Which distro?

2. How is the CUPS administrator (system) group defined?
Code:
cat /etc/cups/cups-files.conf|grep -i "system"
3. Is the "Restart-Job" stanza defined multiple times perhaps? Show the complete output of the following...
Code:
cat /etc/cups/cupsd.conf|grep -A4 "Restart-Job"
 
Old 10-26-2020, 02:51 AM   #5
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
1. Which distro?

2. How is the CUPS administrator (system) group defined?
Code:
cat /etc/cups/cups-files.conf|grep -i "system"
3. Is the "Restart-Job" stanza defined multiple times perhaps? Show the complete output of the following...
Code:
cat /etc/cups/cupsd.conf|grep -A4 "Restart-Job"
Code:
 cat /etc/cups/cupsd.conf|grep -A4 "Restart-Job"
 <Limit Restart-Job>
Require user root
Order deny,allow
</Limit>
Code:
root@user:~# cat /etc/cups/cups-files.conf|grep -i "system"
# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
SystemGroup lpadmin
 
Old 10-26-2020, 03:40 AM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Distro?
 
Old 10-26-2020, 04:10 PM   #7
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Ubuntu
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Newbie 2 11-01-2018 03:18 PM
CUPS (ALPINE) - CUPS claiming print job completed despite printing nothing, How to debug the issue? (network printer, Alpine, Linux, Docker) vinnu543 Linux - Networking 1 11-01-2018 03:13 AM
CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu abhinit Linux - Software 3 04-22-2011 03:19 AM
cups not running after /etc/rc.d/rc.cups restart janhe Slackware 1 09-26-2007 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration