Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a 9.10 Ubuntu Server installed and I want to make it a print server and am trying to get access to the cups browser admin page from a windows client machine. I installed cups:

sudo apt-get install cups

then I edited the /etc/cups/cupsd.conf file and tried several different listen cominbations:

Listen 192.168.1.109:631 #ip my router gives it3
Listen /var/run/cups/cups.sock #already in conf file
Listen fileserver:631 #hostname of server
Port 631 #listen for all incoming requests on 631?

samba is also installed (which I think is necessary to share the printer out?

and finally I added my user to the lpadmin group:

sudo adduser tone lpadmin

but when I try to navigate any of the following I get 403 forbidden

http://fileserver:631/admin
http://fileserver:631
http://192.168.1.109:631/admin
http://192.168.1.109:631

What did I miss?

share|improve this question

4 Answers 4

You might find the answer in the logs

sudo tail -f /var/log/cups/{access,error}_log
share|improve this answer

Try

Listen *:631
share|improve this answer
    
this partially solved my issue, had to change a few others things as well –  Tone Mar 28 '10 at 21:48

I'm pretty sure CUPS allows Admin / web access from localhost only by default. If you're not on the same computer as CUPS, you may need to add
Allow from 192.168.1.1/24
to your cupsd.conf <Location> sections.

share|improve this answer
up vote 0 down vote accepted

I found a sample on the internet somewhere - had to make some changes to my config file:

# Only listen for connections from the local machine.
#Listen localhost:631
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow @LOCAL
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow @LOCAL
</Location>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.