Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: printing cups/lppasswd

  1. #1

    Default printing cups/lppasswd

    I am using Suse11 with KDE4.2
    Printing worked but suddenly the printer stopped. I tried to restart with cups but cups did not accept the root password. Why?
    Tried to set password from commandline: "lppasswd -a root" and supplied the password. Although I was using the terminal as root I get the result: "lppasswd: Unable to open password file: Permission denied".
    How come for root is the permission for lppasswd denied? how can I reset the password? Why is cups not accepting the root password? All this was working when I had Suse10.3. After upgrading (some time ago when Suse11 came out) everything worked fine. Now the printer stopped and this?
    By the way I could get the printer started with the lpadmin command but I would like to log into cups and reset the password whenever I like.
    Any help is very much appreciated.
    Uli

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,431

    Default Re: printing cups/lppasswd

    Not sure why it won't accept the root password but it has been set up for some time to accept the user password anyway.

  3. #3

    Default Re: printing cups/lppasswd

    It does not accept my user-password either. When I tried to set me up for cups with lppasswd -a <username> I get the same "permission denied" message. (Again I tried this command being root in the console window). Now the question for me is how to fix this without a complete reinstall.
    Uli

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,006
    Blog Entries
    1

    Default Re: printing cups/lppasswd

    Are you saying you can't enter 'root' and root password for admin via CUPS http interface?

    Have a look at these guides re CUPS password.

    CUPS Printing Setup Mini-HOWTO

    Printer Sharing: Windows Print Server for Suse/openSUSE Linux Clients [Samba and LPD]

  5. #5
    Join Date
    Jun 2008
    Location
    USA
    Posts
    1,113

    Default Re: printing cups/lppasswd

    Quote Originally Posted by fuerstu View Post
    It does not accept my user-password either. When I tried to set me up for cups with lppasswd -a <username> I get the same "permission denied" message. (Again I tried this command being root in the console window). Now the question for me is how to fix this without a complete reinstall.
    Uli
    Apparently, the command has changed to:

    sudo lppasswd -g sys -a root
    Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke

  6. #6

    Default Re: printing cups/lppasswd

    That's what I am saying. I cannot enter the password through the http interface and I cannot change the password even as root. THe copy below is a straight copy from the terminal where I logged in as root. Thanks for the links, deano_ferrari, but as I cannot get into Cups or anything they don't help. I had set up Cups before (approx a year ago when I installed a new network printer) and then I could log into CUPS and set everything up.

    linux:~ # lppasswd -g sys -a root
    Enter password:
    Enter password again:
    lppasswd: Unable to open password file: Permission denied
    linux:~ #

    Uli

  7. #7
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: printing cups/lppasswd

    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,006
    Blog Entries
    1

    Default Re: printing cups/lppasswd

    If you look at lppasswd, you will see it has this ownership: user lp, group sys. You would have to change ownership to root with chown command first AFAIU.

  9. #9
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    1,770

    Default Re: printing cups/lppasswd

    Quote Originally Posted by deano_ferrari View Post
    If you look at lppasswd, you will see it has this ownership: user lp, group sys. You would have to change ownership to root with chown command first AFAIU.
    Mine is showing:
    Code:
    -rwxr-sr-x 1 lp lp 14888 2009-04-16 19:00 /usr/bin/lppasswd
    Notice the setuid
    openSUSE 12.3 (x86_64) with Kernel 3.7.10-1.16-desktop and KDE 4.11.2 on MacBook Pro
    Latest MS Windows version used: Win95

  10. #10
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,431

    Default Re: printing cups/lppasswd

    I don't know whether this is relevant but man lppasswd gives

    lppasswd -a [ -g groupname ] username

    as the form of the command for adding a new user and implies that you omit the -a to change an existing user's password.

Page 1 of 2 12 LastLast

Posting Permissions

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