- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root can't print, others can
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 12:25 PM
03-29-2005 12:25 PM
root can't print, others can
I have set up a network printer. All users can print OK to it, however the root user cannot print. The print job from the root user can be seen in lpstat however does not go to the printer.
I have looked in /var/adm/lp/log file and get the following entry whenever root attempts to print:
lpsched: invalid parameters
However when another user prints, it prints ok.
Does anyone know what could be causing this problem.
Thanks in advance
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:08 AM
03-30-2005 02:08 AM
Re: root can't print, others can
Bad path
Try /usr/bin/lp when printing as root
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:21 AM
03-30-2005 02:21 AM
Re: root can't print, others can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:40 AM
03-30-2005 02:40 AM
Re: root can't print, others can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:41 AM
03-30-2005 02:41 AM
Re: root can't print, others can
Other thing to look at would be the $PATH as memtioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 12:28 PM
03-30-2005 12:28 PM
Re: root can't print, others can
Here are answers to your questions:
#echo $PATH returns:
/bin:/usr/bin:/sbin:/usr/sbin:.
#which lp returns:
/bin/lp
#ls -al /dev/null returns:
rw-rw-rw bin bin /dev/null
#ls -al /bin/lp /usr/bin/lp returns
r-sr-xr-x root bin /bin/lp
r-sr-xr-x root bin /usr/bin/lp
both lp are same size and no diffs exists.
Any other ideas would be appreciated.
Only root does not print, the job stays in the queue but when I login or 'su' to another user that user prints
Thanks in advance
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 01:50 PM
03-30-2005 01:50 PM
Re: root can't print, others can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:10 PM
03-30-2005 02:10 PM
Re: root can't print, others can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2005 09:34 PM
04-03-2005 09:34 PM
Re: root can't print, others can
When I run hppi (jet driver for network printer) from root and select diagnostics and print a test page it prints OK. What does the jet driver do differently that the lp command ?
But when I run it through lp from the unix prompt it does not work. The print job actually goes to the print spooler and shows up when I do a lpstat -t.
However it never leaves the spooler. When another job is sent by another user it goes to the printer.
Thanks for the replies so far and further assistance would be greatly appreciated.
Thanks
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2005 09:38 PM
04-03-2005 09:38 PM
Re: root can't print, others can
double check your /dev/null file.
# ll /dev/null
crw-rw-rw- 1 bin bin 3 0x000002 Apr 1 16:01 /dev/null
# file /dev/null
/dev/null: character special (3/2)
Looks like yours is a regular file.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2005 05:51 PM
04-06-2005 05:51 PM
Re: root can't print, others can
however the /dev/null is exactly the same as the way you had it in your listing.
One of my earlier posts was just showing a summary of the listing of /dev/null.
Any other thoughts ?
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 05:46 AM
07-06-2005 05:46 AM
Re: root can't print, others can
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 11:31 AM
07-06-2005 11:31 AM
Re: root can't print, others can
Still having problems with root not being able to print.
The only way around it for now is to chmod the file from root so other users can access it then log out and login as another user to print it.
If you find the solution, please post it here.
Thanks
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 06:31 PM
07-06-2005 06:31 PM
Re: root can't print, others can
If you don't have tusc you can get it from here.
ftp://ftp.cup.hp.com/dist/networking/tools/tusc.7.7.ia64.shar
You can run attach to running lpsched as root
# tusc -o /tmp/tusc.out -ccc -f -l -n -p -E -v -T%T -b 80 -r all -w all
Then check tusc.log or post it here.