[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Only root can print?



On: Wed, 7 Oct 1998 21:57:40 -0400 (EDT) Shawn D'Alimonte writes:
> 
> I am using Linux/m68k (hamm) and am having trouble printing.  Only
> root seems able to print.  When i try as my normal account lpr
> responds with 'lpr: can't create /var/spool/lpd/lp/.seq'.  lpq
> claims that no daemon is running.  When I am root everything works
> perfectly.  I am using lpr5.9-29 in its default configuration with a
> Star NX1000R attached to the built in parallel port (/dev/lp0).

Check that all directories beneath (including) /var/spool/lpd are
writable to group lp and owned by user lp.  Here is a sample output
from my system:

~$ ls -ld /var/spool/lpd
drwxrwsr-x   7 lp       lp           1024 Jul 24 21:03 /var/spool/lpd/

~$ ls -l /var/spool/lpd 
total 7
drwxrwxr-x   2 root     lp           1024 Okt  4 10:41 hplj5l/
drwxrwsr-x   2 lp       lp           1024 Mär 25  1997 lp/
-rw-------   1 lp       lp              4 Jul 24 18:50 lpd.lock.marvin.printer
-rw-------   1 lp       lp              4 Okt  9 15:16 lpd.lock.myrkr.printer
drwxrwxr-x   2 root     lp           1024 Aug 10 12:46 stc600/
drwxrwxr-x   2 root     lp           1024 Apr 28 18:13 stc600-high/
drwxrwxr-x   2 root     lp           1024 Feb 10  1998 test/

Regarding your problem with lpd, what is the output of "lpc lpd"?  Try
manually starting the daemon with "/etc/init.d/lprng start" (if you
don't have lprng installed, you probably need to start a file named
like lpr or similar) and look if there are any problems reported in
/var/log/messages.

	Torsten


Reply to: