Results 1 to 6 of 6

Thread: CUPS web config 403 Forbidden

  1. #1
    Join Date
    May 2009
    Location
    Australia
    Beans
    110
    Distro
    Ubuntu 10.04 Lucid Lynx

    CUPS web config 403 Forbidden

    Hi all,

    I recently set up a headless ubuntu server (ubuntu server 9.10). As well as many other things i would like to use it as a printer server. Being a headless machine, i would like to configure cups using the webui from another computer on the lan. However when i browse to http://server:631/ i get a 403 forbiden error.

    I install cups on the server (Ubuntu server 9.10)
    configured cupsd.conf as per https://help.ubuntu.com/9.10/serverguide/C/cups.html
    browsed to it from a ubuntu 9.04 machine using firefox on the same lan and got an 403 forbiden error.

    I also tried adding the local account on the server to the lpadmin group

    sudo usermod -aG lpadmin username

    but that made no difference. I do not get prompted for a username/password at all when i try to get the webui up.

    Am i missing anything? Can some shed any light on how i might resolve this issue?

  2. #2
    Join Date
    Dec 2009
    Location
    Chennai, India
    Beans
    117

    Re: CUPS web config 403 Forbidden

    Hi,

    Solution 1:

    Open the file /etc/cups/cupsd.conf

    In the blocks:

    <Location /> , <Location /admin> and <Location /admin/conf>

    Add the following line :
    Code:
    Allow all
    Restart the CUPS server and check whether you get the same error.

    You may look at
    http://ubuntuforums.org/showthread.php?t=310450 for more details.

    Solution 2:

    In the terminal, enter the following command

    sudo cupsctl --remote-admin
    and restart the CUPS server.

    Hope this helps.
    Last edited by suseendran.rengabashyam; April 6th, 2010 at 07:12 AM. Reason: Another Solution

  3. #3
    Join Date
    May 2009
    Location
    Australia
    Beans
    110
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Re: CUPS web config 403 Forbidden

    Thank you very much suseendran.rengabashyam that worked perfectly.

  4. #4
    Join Date
    Oct 2005
    Location
    Szeged Hungary
    Beans
    54
    Distro
    Lubuntu Development Release

    Re: CUPS web config 403 Forbidden

    That last command worked a treat for me too - Thanks for posting it

  5. #5
    Join Date
    Jan 2007
    Location
    London, UK
    Beans
    8

    Re: CUPS web config 403 Forbidden

    Solution 2 worked nicely for me too (I didn't try solution 1). However it seems to completely rewrite your cups config file (/etc/cupsd.conf) so be warned!

  6. #6
    Join Date
    Feb 2007
    Beans
    24,961
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: CUPS web config 403 Forbidden


    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread closed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •