SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 :
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
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.
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'
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.