LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-10-2009, 07:08 AM   #1
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Rep: Reputation: 15
cups printer install (http://localhost:631/) has root/pw issues


I managed to "install" my HP 3930 in Slack 13.0 with a combo of hp-setup and localhost:631. I had to run the localhost thing to get the proper .ppd (the DJ3920's; I found posts to ensure that this driver works great for the 3930) to show up in hp-setup; I could not finish the installation in localhost because it continually prompted for my username/pw even though I *know* I was imputing my root info correctly.

Afterwards, the printer showed up in cups, but not in the Xfce print manager. So I ran hp-setup again and ran the install again, thinking it'd copy over it (honestly, I don't know why I did this, except just trying everything to get the printer to show up in places where I can print with it, not just the cups thing).

But now two printers show up in cups' web thingy, and I cannot remove/alter/do anything in cups because my root/pw continually get this:
Code:
A username and password are being requested by http://localhost:631. The site says: "CUPS"
until I cancel out. Then I just get
Code:
401 Unauthorized

Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket.
I did a slackpkg search for kerberos and everything it pulls up is installed.
Code:
# slackpkg search kerberos

The list below shows all packages with the selected pattern.

[ installed ] - cups-1.3.11-i486-1
[ installed ] - gcc-g++-4.3.3-i486-3
[ installed ] - samba-3.2.13-i486-1
I'm a newb and am now genuinely lost and confused. Any ideas as to what's going on?
 
Old 09-10-2009, 08:33 AM   #2
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 735
Blog Entries: 3

Rep: Reputation: 81
Does your user belong to group "lp"?

Refer to file CHANGES_AND_HINTS.TXT:

Quote:
HP multifunction printer/scanners require that your user account be a member
of the "lp" group for hp-toolbox to work properly, and to use the scanner
portion of some (all?) units, you'll need to be a member of the "lp" group.
This is because hplip's udev rules set the device with group "lp" ownership.
 
Old 09-10-2009, 08:39 AM   #3
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Erm... I assume so. I'm logged in as root.
How do I check/ensure root belongs to the lp group?
 
Old 09-10-2009, 08:57 AM   #4
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 735
Blog Entries: 3

Rep: Reputation: 81
Run the following command to check to which groups a user (here root) belongs to

Code:
cat /etc/group | grep root
To add a user to a group, type in:

Code:
gpasswd -a username group
So in your case:

Code:
gpasswd -a root lp

Last edited by gegechris99; 09-10-2009 at 08:58 AM. Reason: typo errors
 
Old 09-10-2009, 10:19 AM   #5
Asinine
Member
 
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15
Worked like a charm. Thanks!
 
  


Reply

Tags
cups, printing


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. http://localhost:631/ not found Bester Linux - Server 2 03-25-2009 04:15 AM
Can't Access Cups Admin @ Http://localhost:631 Perps Suse/Novell 7 07-30-2006 07:30 AM
CUPS http://localhost:631/ LUB997 Linux - Software 1 09-26-2005 08:52 PM
How to connect to http://localhost:631 to install CUPS ch.keller Linux - Hardware 3 06-07-2005 10:25 PM
can't access http://localhost:631 (for cups printing) TheOneAndOnlySM Slackware 4 10-14-2003 09:01 PM


All times are GMT -5. The time now is 09:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration