pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/33327: print/cups fails to installed when UNPRIVILEGED=yes



>Number:         33327
>Category:       pkg
>Synopsis:       print/cups fails to installed when UNPRIVILEGED=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 21 13:45:00 +0000 2006
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
pkgsrc/print/cups fails to install in unpriviledged mode:

/usr/local/pkg/bin/install-sh -c -o schwarz -g user -m 755 -m 4755 -o lp -g sys 
-s .libs/lppasswd /usr/local/pkg/bin/lppasswd
you are not a member of group sys
chmod() failed on /usr/local/pkg/bin/#inst.9859#: Not privileged
Cannot access /usr/local/pkg/bin/lppasswd: No such file or directory
gmake[1]: *** [install] Error 1
gmake: *** [installcups] Error 1

This seems to be caused by SPECIAL_PERMS.
>How-To-Repeat:
Install as non-root with UNPRIVILEGED set to yes.
>Fix:
automatically set CUPS_USER, CUPS_GROUP to UNPRIVILEGED_USER, 
UNPRIVILEGED_GROUP if UNPRIVILEGED is yes.
This would also ensure that the binaries get built with the respective 
effective users defined.
I'm not sure whether cups tries to change its effective uid and gid, and if so 
whether there is a compile time switch that prevents it from doing so. If the 
latter exists it might make sense to enable it when installig in unpriviledged 
mode.




Home | Main Index | Thread Index | Old Index