lppasswd: Unable to open passwd file: Permission denied
Posted by Planet Malaysia on November 11, 2009
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.

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:
- Missing /var/log/lastlog
- Telnet service_limit error
- How To Capture PUTTY Session Log
- How to Add Date And Time To Your Bash History on SuSE Linux
- RPM Segmentation Fault
Comments
One Response to “lppasswd: Unable to open passwd file: Permission denied”
Leave a Reply
[...] เป็นอันเสร็จ. Reference – http://www.planetmy.com/blog/lppasswd-unable-to-open-passwd-file-permission-denied/ [...]