1825737 Members
2485 Online
109687 Solutions
New Discussion

Problem printing

 
SOLVED
Go to solution
Thomas Cole
Occasional Contributor

Problem printing

trying to add a printer or running an lpstat I get the following error: can't open printer status file.
Any ideas?
3 REPLIES 3
Sean OB_1
Honored Contributor

Re: Problem printing

Do you get this only when you try to run commands against one particular printer?

Check and make sure that /var/spool/lp has the following files:


prw------- 1 lp lp 0 Oct 16 11:46 CLD_FIFO
prw------- 1 lp lp 0 Oct 16 11:46 FIFO
-rw-r----- 1 lp lp 0 Oct 16 11:46 SCHEDLOCK

-rw-r--r-- 1 lp lp 376488 Oct 16 10:02 pstatus
-rw-r--r-- 1 lp lp 93436 Oct 16 10:02 qstatus



If they are there and correct issue lpshut and make sure the UPPERCASE files go away, then issue lpsched to restart the schedular.

S.K. Chan
Honored Contributor
Solution

Re: Problem printing

Some obvious things to check ..
1) /var/spool/lp/pstatus file (ie the printer status file) should be owned by lp:bin and permission should be 644.
2) /var/spool/lp/qstatus file (ie queue status file), same ownership and permission as 1)
Helen French
Honored Contributor

Re: Problem printing

This happens due to a permission/owner/group change in files under /var/spool/lp. Check the directory and find if the files owner has been changed from lp:bin. Another best way to get back the original permissions is to use SAM and "Save/Restore" printer configurations.
Life is a promise, fulfill it!