lpr is installed SUID lp, group lp, which means it can't read user's files to print them if they aren't world-readable.
It works for me. Are you having trouble printing a read-protected file?
Is u+s really needed? I tried lpr after chmod u-s /usr/bin/lpr it prints OK even without this bit. what was the purpouse of making u+s bit set?
Forgot to tell. It does not print with u+s bit set: ls -l O1 -rw------- 1 mal mal 12 Aug 16 07:59 O1 lpr O1 Warning - Cannot open file 'O1', Permission denied lp: nothing to print after chmod u-s /usr/bin/lpr it prints OK.
That explains it: I'm using the LPRng from our current build, which does not have the setuid bit set.
The bit (u-s) should also be removed from all others programs form LPRng package