LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-05-2005, 04:32 PM   #1
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
Question Could not connect to host localhost (port 631)


this is weird thing.....when I try to add a printer using cups it said that :

Code:
Unable to retrieve the printer list. Error message received from manager:
Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: connection refused.
so I try to do from konqueror with this :
http://localhost:631

but I got error messages too....it said :
Code:
An error occurred while loading http://localhost:631:
Could not connect to host localhost (port 631).
so I try to start cups daemon eventhough I have add or started coz I have already had rc.cups in rc.M....or maybe there is something wrong with rc.cups in my rc.M?
Code:
# Start the print spooling system.  This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
  # Start CUPS:
  /etc/rc.d/rc.cups start
elif [ -x /etc/rc.d/rc.lprng ]; then
  # Start LPRng (lpd):
  . /etc/rc.d/rc.lprng start
fi
so I do it manually with "su" I type "/etc/rc.d/rc.cups start" but it said that :
Code:
root@darkstar:~# /etc/rc.d/rc.cups start
bash: /etc/rc.d/rc.cups: Permission denied
root@darkstar:~#
So what's wrong with my printer?
please anyone help me coz I really need to print some for my job......

thanx in advance
 
Old 12-05-2005, 04:38 PM   #2
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Original Poster
Rep: Reputation: 30
I'm really really sorry....this just my own fault...coz I just compiling new kernel....so my problem has been solved........
again...I'm really sorry
SOLVED
 
Old 12-05-2005, 05:11 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
root@darkstar:~# /etc/rc.d/rc.cups start
bash: /etc/rc.d/rc.cups: Permission denied
root@darkstar:~#
For this part at least, it may be because cups runs as a different user than root. This is a safeguard. You may need to use the "lppasswd" command to enter a user/password before cups allows you to make printer changes. At least this is the way SuSE 9.3 is set up on my computer. I used the cups web interface, but cups wouldn't allow root as a cups administrator, but on the other hand, starting the browser as root (using kdesu) was needed for write access to save the changes.
 
Old 01-03-2007, 05:09 PM   #4
dconine
LQ Newbie
 
Registered: Nov 2004
Location: WI
Distribution: SuSe
Posts: 14

Rep: Reputation: 0
Found this when browsing, thought it should be here

Quote:
Richard
2004-06-22, 5:59 pm
OK, I finally figured it out! Since cups was running as lp,sys it
didnt have permission to write in the /etc/cups/ directory. I
granted o+w, set the password, and then took away o-w. It was also
a challenge to figure out where cups wanted to write the passwd
file and I didnt find that in documentation

On Thu, 17 Jun 2004 16:21:25 -0700, Richard Head wrote:
[vbcol=seagreen]
> So then I changed the AuthType and AuthClass in cups.conf to
> Digest, User and also tried Basic, User. Now I am getting
> 'lppasswd: Unable to open passwd file: Permission denied'
It came from here: http://www.webservertalk.com/archive...-6-251819.html
> and I am root.
>
> On Thu, 17 Jun 2004 16:13:07 -0700, Richard Head wrote:
 
Old 01-04-2007, 12:29 PM   #5
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Quote:
root@darkstar:~# /etc/rc.d/rc.cups start
bash: /etc/rc.d/rc.cups: Permission denied
root@darkstar:~#
The 'Permission denied' is not related to the permissions of cups
it is related to the permissions of /etc/rc.d/rc.cups which is different

This message normally means that the script is not executable (at least if you have run it as root)


tobyl

Last edited by tobyl; 01-04-2007 at 12:30 PM.
 
Old 01-05-2007, 08:32 AM   #6
dconine
LQ Newbie
 
Registered: Nov 2004
Location: WI
Distribution: SuSe
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by tobyl
The 'Permission denied' is not related to the permissions of cups
it is related to the permissions of /etc/rc.d/rc.cups which is different

This message normally means that the script is not executable (at least if you have run it as root)


tobyl
Thanks. Either way, I think it is important to inform people that even though they are logged in as root, cups in SuSE is running as another user named lp who is performing the tasks, and this isn't obvious to anyone who is a newbie like myself.
(long rant about man pages, scrolling, and 25" geek monitors snipped out here)
 
Old 01-05-2007, 11:55 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Thanks. Either way, I think it is important to inform people that even though they are logged in as root, cups in SuSE is running as another user named lp who is performing the tasks, and this isn't obvious to anyone who is a newbie like myself.
This is a Slackware forum, not SuSE. Your information is not relevant here.

Eric
 
  


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
Can't connect to host localhost Scoobsky Linux - Networking 3 10-26-2005 11:47 AM
How to connect to http://localhost:631 to install CUPS ch.keller Linux - Hardware 3 06-07-2005 09:25 PM
LocalHost:631 - cannot connect sitka Linux - Networking 6 05-30-2005 03:30 PM
[apache2] could not connect to host localhost LordFrancis Linux - Networking 1 09-30-2004 02:37 PM
Konkueror - Could not connect to host localhost coffen Linux - Networking 0 01-20-2002 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 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