lppasswd: Unable to open passwd file: Permission denied

Posted by Planet Malaysia on November 11, 2009

advertisement

The lppasswd command used to adds, changes, or deletes passwords in the CUPS digest password file which refer to /etc/cups/passwd.md5.

In order to create a new CUPS administrator user, enter a command: lppasswd -g sys -a username.

I’m having a problem creating a new user with error message: “lppasswd: Unable to open passwd file: Permission denied” today.

lppasswd

And I just would like to share the solution as below:

1. List /usr/bin/lppasswd file owner and permission

planetmy:~ # ls -l /usr/bin/lppasswd
-rwsr-xr-x 1 lp sys 9428 Nov 29 2005 /usr/bin/lppasswd

2. Change lppasswd ownership

planetmy:~ # chown root /usr/bin/lppasswd

3. Add a new user and it worked

planetmy:~ # lppasswd -g sys -a cupadmin

4. Make sure you have correct permission for file /etc/cups/passwd.md5

planetmy:~ # ls -l /etc/cups/passwd.md5
-rw------- 1 lp lp 90 Nov 11 08:03 /etc/cups/passwd.md5

5. Make sure you change /usr/bin/lppasswd file back to normal

planetmy:~ # chown lp /usr/bin/lppasswd

Enjoy!

Possibly Related Posts:


Comments

One Response to “lppasswd: Unable to open passwd file: Permission denied”

  1.   CUPS – Unable to open passwd file: Permission denied by SONTAYA's | Blog on March 9th, 2010 3:07 pm

    [...] เป็นอันเสร็จ. Reference – http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/ [...]

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com