Subject: pkg/33327: print/cups fails to installed when UNPRIVILEGED=yes
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 04/21/2006 13:45:00
>Synopsis: print/cups fails to installed when UNPRIVILEGED=yes
>Arrival-Date: Fri Apr 21 13:45:00 +0000 2006
>Originator: Georg Schwarz
>Release: current pkgsrc
IRIX lorenz 5.3 08031225 IP20 mips
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: *** [install] Error 1
gmake: *** [installcups] Error 1
This seems to be caused by SPECIAL_PERMS.
Install as non-root with UNPRIVILEGED set to yes.
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.