Operating System - HP-UX
1834613 Members
3541 Online
110069 Solutions
New Discussion

Users Cannot Print...But root can...

 
SOLVED
Go to solution
jmckinzie
Super Advisor

Users Cannot Print...But root can...

I am having a problem. My users cannot print at all however, root can print just fine.

When I print from root, I get:

# banner "TEST"|lp -d G1B013_J4
request id is G1B013_J4-28 (standard input)

When I print from any other user i get:

banner "TEST"|lp -d G1B013_J4
#

4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Users Cannot Print...But root can...

Shalom Jody,

Check file permissions on the lp program. You may need sudo to give full rights to non-root users, but should not have to go that far.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Users Cannot Print...But root can...

This is almost always caused by changing the mode of critical lp files --- often by removing the setuid bit. For example, lp must be 4555 and owned by root:bin. lpsched must also be 4755 and owned by root bin. You also should look at the permissions of the directories and files under /var/spool/lp. The easist way is to compare the modes and ownerships of the files on a good system with your bad system.

This often happens when a system has been "improved" to meet security audit requirements without a thorough understanding of the underlying subsystems like lp.

You may get some clues by examining /var/spool/lp/log.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Users Cannot Print...But root can...

As Clay mentions, permissions and ownership are correct out of the box and 'improvements' almost always break things, especially when generalized rules for multiple OS's are used. You can verify all the files and executables for your spooler using swverify. Just tell it to verify the lp spooler product. The name depends on the version of HP-UX you are using.


Bill Hassell, sysadmin
jmckinzie
Super Advisor

Re: Users Cannot Print...But root can...

Found the solution....but, honestly cannot remember what it was (Look at dates)