?
Solved

Permissions Problem printing to a HP Jet Direct Attached Printer

Posted on 2004-10-04
8
Medium Priority
?
556 Views
Last Modified: 2013-12-27
We are running Solaris 9 and have several printers both serial and network.  The problem we are experiencing is we can print to all the printers fine if we are logged in as root.  We cannot print to the jet direct printers logged in as any user other than root.  We just went live on a v240 from a 3500, everything worked fine on the 3500.  The points are so high because none of the laser jet printers work until we get this resolved.
0
Comment
Question by:magarner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 12220880
How did you "move" the printers to the v240?  If you copied the program and config files over, I'd guess that some of them need to be SUID root (or suid lp).

Have you tried adding a printer from scratch?

Do you still have the 3500 up and running? If so, try `find /etc /var /usr -perm +4000 -exec ls -ld {} \;` to list files that have SUID bit set.
And if you can't solve the problem quickly, you could use the 3500 as a print server temporarily ;-)
0
 

Author Comment

by:magarner
ID: 12221060
I added the printers from scratch using hppi.  

I treid your command on the 3500 and received the following

find: -perm: Bad permission string
find: path-list predicate-list
0
 
LVL 21

Expert Comment

by:tfewster
ID: 12221552
Oops, should be "-perm -4000".  However, if you've installed the hppi software & created the printers from scratch, that may not be the problem.

Some thoughts on debugging printing:

What happens when the users try to use `lp` from the command line? An error message, or does the request just disappear? Is there anything in /var/lp/logs?  Can users run `lpstat` to see the printer queues?

Check command ownership/permissions:
-r-s--x--x   1 root     lp         22956 Jul 12  2002 /usr/bin/lp
-r-s--x--x   1 root     lp         22460 Jul 12  2002 /usr/bin/lpstat
-r-s--x--x   1 root     bin        19700 Jul 12  2002 /usr/lib/lp/bin/netpr

Check /dev/null is writable by user "lp"

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 38

Expert Comment

by:yuzh
ID: 12223506
I never have to use 3rd part software for *nix printer installations.(there might be a bug in
the package, or miss configured for the 3rd part software!)

I normally use command line or Solaris (GUI) admintool to install printers. I think it is
easy to run "admintool" to install your printers:

1) If you try to setup a Solaris Printer server, you don't need any third party software, all
you need to do is to connet the printer to the Sunbox then run the GUI tool:

     admintool &
     to add a local printer.
     see http:Q_20607008.html   for more details
In this case, the printer server IP is the IP of this Sunbox !

2) If you want to access to a network printer, the printer server IP is the machine's IP which
    the printer direct connted to, Or if the printer has a NIC card, the IP of the printer card is
    the printer server IP.

    to access to the printer, you need to run "admintool" and add a remote printer.
    see http:Q_20268256.html for more details.

0
 

Author Comment

by:magarner
ID: 12252599
I have removed and readded the printers - I have compared everything file that I am aware of for permissions.  Still root is the only user that can print.  The response by yuzh is not the same as my environment - these printers are not part of any windows environment they are exclusively used by the Solaris box.  I found a doc on HP's site that describes my problem but the fix did not work.

Any other suggestions.
0
 

Accepted Solution

by:
magarner earned 0 total points
ID: 12252892
I was able to fix the problem - anyone interested check the following article.
http://sunsolve.sun.com/search/document.do?assetkey=1-25-72188-1&searchclause=root%20can%20print%20but%20users%20cannot
0
 
LVL 21

Expert Comment

by:tfewster
ID: 12254630
Congratulations! But I'm burning with curiosity, please tell me which step in that document actually solved the problem - Permissions on /var/tmp or the ~/.jpiu (which I've _never_ seen before...)???

AFAIK, yuzh's solution will work for "networked" OR "remote" printers;  My only concern is that using the admintool & netstandard driver won't use the more advanced features of a printer, e.g. Landscape.  Bu that's a long running dabate between Greg and me, so you don't want to get involved ;-)

Greg, can you PAQ and refund the points on this question or does magarner need to post a request in Community Support?
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question