8.2.3. File Permissions
8.2.3. File Permissions
By popular demand, I include below a listing of the permissions
on interesting files on my system. There are a number of better
ways to do this, ideally using only SGID binaries and not making
everything SUID root, but this is how my system came out of the
box, and it works for me. (Quite frankly, if your vendor can't
even ship a working lpd you're in for a rough ride).
-r-sr-sr-x 1 root lp /usr/bin/lpr*
-r-sr-sr-x 1 root lp /usr/bin/lprm*
-rwxr--r-- 1 root root /usr/sbin/lpd*
-r-xr-sr-x 1 root lp /usr/sbin/lpc*
drwxrwxr-x 4 root lp /var/spool/lpd/
drwxr-xr-x 2 root lp /var/spool/lpd/lp/
|
Lpd must currently be run as root so that it can bind to the
low-numbered lp service port. It should probably become UID
lp.lp or something after binding, but I don't think it does.
This is simply one more reason to avoid the stock BSD LPD.