Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Ubuntu + CUPS = Cannot Admin via {hostname}:631

  1. #11
    Join Date
    Aug 2012
    Beans
    10

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    I wish I did understand. I've read the docs for 1.5 (the version bundled with Ubuntu 12.04). And yet I don't see any mention of creating a user or specifying what user CUPS processes will run as. I did see settings for authentication types to use the host UNIX users, but the system still doesn't seem to be able to handle comparing the incoming web credentials to the system and continue to the admin web pages...

    I think this may be more of an issue with something about Ubuntu's setup of CUPS than CUPS internal? Is there not a complete step-by-step guide for Ubuntu 12 installation of CUPS?

  2. #12
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,925
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    is there a lpadmin group? Add your username to that group.

    here's the cups server guide for 12.04: https://help.ubuntu.com/12.04/serverguide/cups.html
    Last edited by dannyboy79; November 15th, 2012 at 11:15 PM.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  3. #13
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    Quote Originally Posted by dannyboy79 View Post
    is there a lpadmin group? Add your username to that group.

    here's the cups server guide for 12.04: https://help.ubuntu.com/12.04/serverguide/cups.html
    Exactly!

    Configure printers

    This right is gained by adding the user to the "lpadmin" group.

    Cups contains a setting called "SystemGroup" in the /etc/cusp/cupsd.conf that specifies who is allowed to manage printers. By default, it is set to "lpadmin".
    Search on lpadmin at this site

  4. #14
    Join Date
    Aug 2012
    Beans
    10

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    Yes, the account is in the lpadmin group, as shown by
    getent group | grep lpadmin
    lpadmin:108:sysop,papercut,root

  5. #15
    Join Date
    Aug 2012
    Beans
    10

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    As posted earlier, I've also added root, sysop, and the Windows AD group to the SystemGroup line in cupsd.conf:
    SystemGroup root sysop lpadmin HHP\PrinterAdmins
    Is that syntax correct? Or is that a possible problem (listing UNIX users & groups, and AD users and groups together)?
    Last edited by LydaRA; November 16th, 2012 at 12:01 AM.

  6. #16
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    Quote Originally Posted by LydaRA View Post
    As posted earlier, I've also added root, sysop, and the Windows AD group to the SystemGroup line in cupsd.conf:


    Is that syntax correct? Or is that a possible problem (listing UNIX users & groups, and AD users and groups together)?
    No, the lpadmin group should hold only local users (from this localhost). Linux has no nested groups. I would expect that only users that have sudo rights can configure CUPS. This means the user also should be a member of the sudo group (an administrator).

    lpadmin group
    Code:
    redmk2@maui:~$ getent group|grep lpadmin
    lpadmin:x:109:redmk2
    Member of sudo group
    Code:
    redmk2@maui:~$ getent group|grep sudo
    sudo:x:27:redmk2
    The groups redmk2 is a member of
    Code:
    redmk2@maui:~$ getent group|grep redmk2
    adm:x:4:redmk2
    cdrom:x:24:redmk2
    sudo:x:27:redmk2
    dip:x:30:redmk2
    plugdev:x:46:redmk2
    lpadmin:x:109:redmk2
    redmk2:x:1000:
    sambashare:x:124:redmk2
    Generally speaking, you should administer CUPS from the local host. If you must do this remotly you can ssh to that host and use the lpadmin commands directly. See
    Code:
    man lpadmin
    ... or config the CUPS admin web page to accept the ethernet connection.
    Last edited by redmk2; November 16th, 2012 at 02:12 AM. Reason: typo

  7. #17
    Join Date
    Aug 2012
    Beans
    10

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    Code:
    getent group | grep lpadmin
    lpadmin:x:108:sysop,papercut,root
    
    getent group | grep sudo
    sudo:x:27:sysop,papercut
    So I still don't see how the CUPS process (whatever user that is) can access the UNIX users password file to verify the credentials passed in...

    I find references to "cupsys" on some sites, but it appears that Ubuntu uses a "cups" name instead--although I fail to find either "cupsys" or "cups" as a user to add to the shadow group...

  8. #18
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    5,925
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    have you checked to see what user does run the cups server? I am now curious
    Code:
    ps aux | grep cups
    i believe the problem with ubuntu's implementation of CUPS is because Ubuntu disables the root account by default. I admit after just googling and reading about CUPS I am confused about it just as much as you. Did you run
    sudo apt-get install cupsys
    or
    sudo apt-get install cups
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  9. #19
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    Quote Originally Posted by LydaRA View Post
    Code:
    getent group | grep lpadmin
    lpadmin:x:108:sysop,papercut,root
    
    getent group | grep sudo
    sudo:x:27:sysop,papercut
    So I still don't see how the CUPS process (whatever user that is) can access the UNIX users password file to verify the credentials passed in...

    I find references to "cupsys" on some sites, but it appears that Ubuntu uses a "cups" name instead--although I fail to find either "cupsys" or "cups" as a user to add to the shadow group...
    The CUPS process is run by the system user lp. This user is NOT the same as the user that administrates the system (e.g. lpadmin). The cupsys reference is to an ubuntu package. There is no user cups.

    What is your login? I assume you are a user with sudo rights. Are you a member of the group lpadmin. Are you able to administrate CUPS?

  10. #20
    Join Date
    May 2007
    Beans
    314
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu + CUPS = Cannot Admin via {hostname}:631

    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    This is default for Ubuntu (and maybe other sudo based distro's) and usually there's no need to change anything. It works good and allows logins with the admin user name and its password.
    The admin user is the user which was created within the system installation procedure.
    But if root user is set then to log in you must enter root as login name and root password. (This is usually default for su based distro's).

Page 2 of 3 FirstFirst 123 LastLast

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
  •