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

Re: lprm says "Permission denied" (fwd)



On Wed, 26 Feb 1997, Andrea Arcangeli wrote:

> >
> >Hi!
> >
> >something must be wrong with my lpd-setup.  When a user starts
> >a print job, s/he can't cancel it anymore.  Example: (user 'spiegl')
> >
> > $ lpr abc.txt
> > $ lpq
> > lp is ready and printing
> > Rank   Owner      Job  Files                                 Total Size
> > active spiegl     27   abc.txt                               47978 bytes
> > $ lprm 27
> > cfA027Aa00860: Permission denied
> > cfA027Aa00860: Permission denied
> >
> > $ ls -laF
> > total 54
> > drwxrwsr-x   2 root     lp           1024 Feb 24 01:39 ./
> > drwxrwsr-x   4 root     lp           1024 Feb 23 23:12 ../
> > -rw-r----x   1 root     lp              4 Feb 24 01:39 .seq*
> > -rw-rw----   1 daemon   lp             86 Feb 24 01:39 cfA029Aa00872
> > -rw-rw----   1 spiegl   lp          47978 Feb 24 01:39 dfA029Aa00872
> > -rw-r--r--   1 root     lp             18 Feb 24 01:39 lock
> > -rw-rw-r--   1 root     lp             25 Feb 24 01:39 status
> >
> > $ ls -lAF `which lpd` `which lprm`
> > -rwsr-sr-x   1 root     lp          13157 Nov 24 21:04 /usr/bin/lprm*
> > -rwxr-xr-x   1 root     root        41417 Nov 24 21:04 /usr/sbin/lpd*
> >
> >Is there anything wrong with the permissions?  I didn't change
> >anything after installing Debian 1.2 and updating to Debian 1.4.
> 
> I have the same problem using the lpr pakage in the rex-fixed.
> 
I had the same problem, too.  

lprm can't regonize that the user "spiegl" is a local user because of
a problem with your hostname in /etc/hostname and /etc/hosts.

If /etc/hostname looks like
	your_hostname

then your /etc/hosts file should contain a line like this
	<your ip number>   your_hostname   your_hostname.somewhere.com

The order of the two names in /etc/hosts is very important.


Andreas

------------------------------------------------------------------------------
Andreas Nowack        mail: Kastanienweg 31, Zi. 3314, D-52074 Aachen, Germany 
                       tel: +49-241-876597
 \|/ ____ \|/  
 "@'/ ,. \`@"        email: nowack@kawo2.rwth-aachen.de
 /_| \__/ |_\          www: http://www.kawo2.rwth-aachen.de/~nowack
    \__U_/     fingerprint: B6 1D 0E F6 09 7B A0 EB  38 DB D1 2F C2 F7 48 06
------------------------------------------------------------------------------
                            Beware of the Penguin!
------------------------------------------------------------------------------
   "Prediction is very difficult, especially of the future."  -  Niels Bohr


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: