Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 10-09-2005, 11:48 AM   #1
LQ Newbie
Registered: Jul 2005
Location: Netherlands
Distribution: ZipSlack 10.1
Posts: 6

Rep: Reputation: 0
CUPS - unauthorized to manage


I'm trying for three days now to get my printer running (parallel, desk-jet).

I'v read a lot about configuring CUPS by now, but still have authorization problem.

The web-page is running, both locally as on a windows-box (the latter took me some time editting the cupsd.conf file, I'm just not sure what did the trick).

But I can't for example add a printer, kill jobs etc. (I added a printer with the command-line, which wasn't a problem!)

I'm starting the web-page as root locally, the windows-box doesn't ask me to log on.

Reading the conf-file, I think there's something wrong with groups - users, but can't figure out what.

Does anybody have a clue?
Old 10-10-2005, 05:46 AM   #2
Registered: Feb 2005
Location: England
Distribution: Ubuntu 5.10
Posts: 80

Rep: Reputation: 15
The cups administrator isn't the same thing as root, its a separate account.
As root type the following
lppasswd -a username
where 'username' is the name you want to give the cups admistrator. This will then prompt you to enter a password for the account. You should now be able to manage cups by going to your file manager and typing :// in the address bar.
Old 10-13-2005, 05:57 AM   #3
LQ Newbie
Registered: Jul 2005
Location: Netherlands
Distribution: ZipSlack 10.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for reply.

Didn't work out, got a message that some password file doesn't exist.

Got one step further. The docs said that root did have to have a password. otherwise you can't add printers. After commenting some lines in the conf-file, I can add printers using the web-interface (but still can't use the other options).

At last, I connected the printer to an XP-box, so at least I can print. When having more time, I will give it another try.

To me the conf file is a bit confusing. I don't know what defaults are activated, for example:

# Cup can do x left or right.
# Default is right.

# x = right.

I expect that when uncommenting nothing, CUPS will do x to the right. But I assume you have to uncomment the line? But if you don't uncomment the line, what will CUPS do, go to the middle?
Old 10-15-2005, 05:56 AM   #4
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,613

Rep: Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903Reputation: 3903
The line that determines admin access to CUPS is this one (in /etc/cups/cupsd.conf):
#SystemGroup sys
Meaning that if you add yourself to the "sys" group, you will be able to use your own account and psasword to administer CUPS.

Adding yourself to "sys is as easy as running
, look for the line that starts with "sys" and add your name at the end of the line.

Or, if you don't like hacking the group file that way, run this command (substitute yourusername with your own user name of course :-) :
usermod -G $(id -Gn yourusername | tr ' ' ','),sys yourusername
You need to logout and login again to have this effect.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: cannot login to manage Printers from the Web powah Linux - Software 2 04-27-2005 07:19 PM
Users can't manage print jobs on CUPS/Samba printer tisource Linux - Networking 8 04-21-2005 12:52 PM
how to tell if getting unauthorized mail relaying? linuxboy69 Linux - Software 5 08-12-2004 03:45 PM
Unauthorized Memory usage. vexer Linux - Software 4 05-13-2004 04:55 PM
unauthorized IP ?!? fransemail Linux - Software 1 04-24-2004 09:15 AM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 02:22 PM.

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