Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only root user can print 1

Status
Not open for further replies.

norme

MIS
Nov 19, 2003
11
AU
Printing issue I have on new p520 server running 5.3, printing works fine for root user but when any other users print the queue goes down - looks like a permissions problem but have been unable to track where. If you add a user as part of the system group then printing works for that user.
Have looked at permissions on /var/spool/lpd and also /tmp /usr/lib/lpd as well as program permissions eg piobe, lp qprt etc, but seem to be missing something - any ideas ?
 
Hi norme,

Checkout this:
Code:
Can't print as non-root user, but root can print fine 
This condition almost always indicates permission problems or bad or missing information in the /etc/password or /etc/user files. 
Check permissions on all directories in the /var/spool/lpd/... chain. 
Check permissions on /tmp, /usr/lpd, and /usr/lib/lpd. 
Check permissions on print programs /usr/bin/enq, qprt, piobe, and so on. 
Supportline has a program called prtcheck to check permissions on applicable files.

Found while googling from this site:

Regards,
Khalid
 
Thanks Khalid,

I did come across that link and went through the recommendations but could not find anything incorrect, will review again though.

regards

norme
 
workaround :
you can use sudo , or create a script called lp,which executes the lp command as root,and place the location of the script in the PATH variable.Put it in the beginning so it chooses the right lp command :)

rgds,


R.
 
Are your users members of the group printq?

also take a look at

lssrc -s qdaemon
If qdaemon is active stop it by executing
stopsrc -s qdaemon
Verify whether qdaemon has been successfully stopped or not.
Change to the directory /var/spool/lpd
You will find two directories called stat and qdir
Just delete all the files in these two directories. If it returns an error
message that argument list is too long, just delete those two directories
and recreate it.
mkdir qdir
mkdir stat
Change the ownership of these two directories to root and printq and
assign 777 permission for the two directories.
Restart the qdaemon by executing startsrc -s qdaemon.
Now try giving a print job.


Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Thanks Mark - tried your suggestion but unfortunately same result, test user is a member of the printq but as soon as that user sends a job the queue will go down, if you make that user part of the system group and retry same print task it works.

regards
norme
 
What are the permissions/owner/group of var/spool/lpd/stat & qdir?

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Mike,
Permissions are :
/var/spool/lpd>ls -l
total 8
drwxrwxr-x 3 root printq 256 Apr 08 03:26 pio
drwxrwxrwx 2 root printq 256 Apr 08 14:07 qdir
drwxrwxrwx 2 root printq 4096 Apr 08 14:07 stat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top