Whatever I set in cupsd.conf, I had an access denied message:
UnauthorizedAdministrative commands are disabled in the web interface for
security reasons. Please use the GNOME CUPS manager (Computer > System
configuration > Printing).
In /var/log/auth.log the following message appeared:
Dez 17 13:05:34 localhost cupsd: (pam_unix) authentication failure; logname=
uid=0 euid=0 tty= ruser= rhost= user=nictuku
Also, in /var/log/cups/error_log I had:
E [17/Dec/2004:13:05:50 -0200] IsAuthorized: pam_authenticate() returned 7
(Authentication failure)!
The solution is quite simple. Just change the /etc/cups/cupsd.conf and set the daemon user to root: Put "User root" in the file. Then restart cupsys.
Obviously this is a security no-no, but one should have the freedom to do whatever he wants, right? :)
Seriously, Ubuntu disabled that for a reason. It's bad to log in as root using plain http authentication. In some cases, though, the web interface is required.
In my home server I don't run X, so I can't use the gnome cups control panel. Also, in general network servers, you could use an ssh tunnel to login to the cups interface. In that case, I suggest you to keep 127.0.0.1 as the only listening interface, for better security.
Or, if you want a little more security, leave the user as-is and add the "cupsys" user to the "shadow" group in your /etc/group. This allows the cupsys user the ability to check the shadow password file.
ReplyDeleteThanks... This proved to be exactly what I needed right now. Obviously Stephen's improvement makes it good from all aspects.
ReplyDeleteTHANK YOU!!!
ReplyDeleteexcellent advice, it really is very useful, that's why I like to read this kind of blogs, thank relamente we have provided this information!
ReplyDeleteI applied all the tips that appeared in the post and guess what??
ReplyDeleteEUREKA, all helped me too ... really I appreciate their contributions, they are great ...
I do not know much about how to apply these tips, but I'll wait for my daughter to help me apply!
ReplyDeletethanks!
I really believe you will do much better in the future I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer! Web Hosting Solution
ReplyDeleteYou made certain good points there, which i really liked it.. I like the way you organized the topics.. Really had a nice time... Hope to see more article. Thanks.
ReplyDelete