{"id":1720,"date":"2014-03-28T23:33:33","date_gmt":"2014-03-29T06:33:33","guid":{"rendered":"http:\/\/www.designersgate.com\/blogs\/?p=1720"},"modified":"2014-03-28T23:33:33","modified_gmt":"2014-03-29T06:33:33","slug":"cups-forbiden-ubuntu-13-10","status":"publish","type":"post","link":"https:\/\/designersgate.com\/blog\/cups-forbiden-ubuntu-13-10\/","title":{"rendered":"CUPS &#8211; Forbiden &#8211; Ubuntu 13.10"},"content":{"rendered":"<p>Wow, I haven&#8217;t had a hard time with Ubuntu 13.10 until I bought a new laser printer from Lexmark. The printer was fine and I downloaded all the required files from <a href=\"http:\/\/lexmark.com\" target=\"_blank\" rel=\"noopener noreferrer\">lexmark.com<\/a>, but an error pop out from the Ubuntu Software Center stating that the package was malformed. Anyway, I submitted the error to Lexmark and try again with Linux community options. Then I was instructed to use CUPS, which can be accessed typing <code>http:\/\/localhost:631<\/code> in your browser&#8217;s address bar.<\/p>\n<p>As stated in the overview page: &#8220;CUPS is the standards-based, open source printing system developed by Apple Inc. for OS\u00ae X and other UNIX\u00ae-like operating systems. CUPS is the software you use to print from applications like the web browser you are using to read this page. It converts the page descriptions produced by your application (put a paragraph here, draw a line there, and so forth) into something your printer can understand and then sends the information to the printer for printing.&#8221;<\/p>\n<p>Now as I was instructed by the community I tried to add a printer but then, the devil popped out, the http authentication window asking for user\/password credentials. Well, I figured out that it refers to my login credential so I tried but the page refreshed and a message in the screen saying FORBIDEN.<\/p>\n<p>After reading a couple of forums, I tried refresing the root password, adding my user in the lpadmin group and on and on&#8230; and, of course, FORBIDEN became the worst bad word someone could ever said to me that day. I was frustrated. But then the light appeared, and a solution that really works come to my attention that illuminated my way and finally I was able to access the administration section of CUPS web interface. Halleluhiah!<\/p>\n<p>But I will trace my steps just in case this does not work by itself (for this just hit Ctrl+Alt+T to open the terminal):<\/p>\n<p>First download and install drivers from Linux Open Printing:<\/p>\n<p><a href=\"http:\/\/www.openprinting.org\/printers\">Find your printer by manufacturer and model<\/a>. Make sure to download the PPD files too, which you will required when installing.<\/p>\n<p>Adding my user into the lpadmin group using:<\/p>\n<p><code>sudo usermod -a -G lpadmin username<\/code><\/p>\n<p>Adding root user into the lpadmin group using:<\/p>\n<p><code>sudo usermod -a -G lpadmin username<\/code><\/p>\n<p>Edit the CUPS configuration file that can be found in <code>\/etc\/cups\/<\/code> with the command:<\/p>\n<p><code>sudo gedit \/etc\/cups\/cupsd.conf<\/code><\/p>\n<p>Add the following lines after the line that says <code>Listen \/var\/run\/cups\/cups.sock<\/code>:<code><br \/>\nListen 127.0.0.1:631 #to allow web interface<br \/>\nListen 192.168.10.250:631 #to allow network access<br \/>\n<\/code><\/p>\n<p>Find the line <code>&lt;Location \/admin\/conf&gt;<\/code> and add in between:<code><br \/>\nOrder allow,deny<br \/>\nAllow @LOCAL<br \/>\n<\/code><\/p>\n<p>Shoul looks:<code><\/p>\n<p>AuthType Default<br \/>\nRequire user @SYSTEM<br \/>\nOrder allow,deny<br \/>\nAllow @LOCAL<\/p>\n<p><\/code><\/p>\n<p>Now, what really do the trick, add the following line after <code>WebInterface Yes<\/code>:<\/p>\n<p><code>SystemGroup lpadmin<\/code><\/p>\n<p>That&#8217;s it, try accessing or adding a printer with the web interface a leave a comment if works!<\/p>\n<p>If your problem persists try:<\/p>\n<p><code><br \/>\ngksudo system-config-printer<br \/>\n<\/code><\/p>\n<p>And add the printer with the Gnome Interface.<\/p>\n<p>Happy Coding!<\/p>\n<p>Reference:<br \/>\n<a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?id=35567\" target=\"_blank\" rel=\"noopener noreferrer\">CUPS web interface wants a password?<\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/197189\/authentication-required-to-modify-a-printer-whats-the-password\" target=\"_blank\" rel=\"noopener noreferrer\">Authentication required to modify a printer- what&#8217;s the password?<\/a><br \/>\n<a href=\"http:\/\/www.linuxforums.org\/forum\/servers\/120309-cups-403-forbidden-error.html\" target=\"_blank\" rel=\"noopener noreferrer\">CUPS 403 Forbidden error<\/a><br \/>\n<a href=\"http:\/\/www.openprinting.org\/printers\">Open Printing<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wow, I haven&#8217;t had a hard time with Ubuntu 13.10 until I bought a new laser printer from Lexmark. The printer was fine and I downloaded all the required files from lexmark.com, but an error pop out from the Ubuntu Software Center stating that the package was malformed. Anyway, I submitted the error to Lexmark [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1721,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,123,13,7],"tags":[173,174,175,176,177,178,179,98],"class_list":["post-1720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-reviews","category-news","category-tips","category-tutorials","tag-administration","tag-cups","tag-install","tag-lexmark","tag-printer","tag-root","tag-settings","tag-ubuntu"],"acf":[],"jetpack_featured_media_url":"https:\/\/designersgate.com\/blog\/wp-content\/uploads\/2014\/03\/DG-UBUNTU-CUPS.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts\/1720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/comments?post=1720"}],"version-history":[{"count":0,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/posts\/1720\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/media\/1721"}],"wp:attachment":[{"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/media?parent=1720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/categories?post=1720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/designersgate.com\/blog\/wp-json\/wp\/v2\/tags?post=1720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}