Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lppasswd fails due to missing file? #1735

Closed
michaelrsweet opened this issue May 31, 2006 · 2 comments
Closed

lppasswd fails due to missing file? #1735

michaelrsweet opened this issue May 31, 2006 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-current
CUPS.org User: atn

Trying to add cups users as root, via lppasswd fails, error message is "lppasswd: Unable to open password file: Permission denied". Running the same through strace gives:
open("/l/cups-1.2.1/etc/cups/passwd.new", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0400) = -1 EACCES (Permission denied)
access("/l/cups-1.2.1/share/locale/C/cups_C.po", F_OK) = -1 ENOENT (No such file or directory)
open("/l/cups-1.2.1/share/locale/C/cups_C.po", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
write(2, "lppasswd: Unable to open passwor"..., 58lppasswd: Unable to open password file: Permission denied
) = 58
exit_group(1) = ?
Process 30419 detached

As I checked for the missing file cups_C.po, I saw that the entire directory /l/cups-1.2.1/share/locale/C/ was missing.

Seems like a bug, I'm running cups-1.2.1 compiled from sources on an RHEL4 server. Only configuration changes while compiling was that the prefix directory is /l/cups-1.2.1. Seems to be working normally besides this lppasswd problem.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

It's a permissions problem. Basically, it can't create the passwd.new file in /etc/cups.

As a temporary solution, do:

chown root /l/cups-1.2.1/bin/lppasswd
chmod 4755 /l/cups-1.2.1/bin/lppasswd

The program is, by default, installed setuid to "lp", but I think we're going to have to go back to setuid to "root" for this to work...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant