[Top][All Lists]

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

Re: HOME not set when printing with LPR

From: Enrique Perez-Terron
Subject: Re: HOME not set when printing with LPR
Date: Thu, 19 Aug 2004 13:47:58 +0200

On Wed, 2004-08-18 at 23:56, James Richard Tyrer wrote:
> I was having a problem with LPR (I am still using GNUlpr) not finding my 
> fonts 
> when I printed.  I found that the filter script was not a login script.  I 
> changed that but found that it still didn't find the fonts in $HOME/.fonts.
> Some debugging and I found that the problem is that despite the fact that 
> is set correctly to the user that started the print job that HOME is not set 
> (it 
> is blank).  This appears to me to be a Bash bug.

An lpr filter script does not usually run as the user who invoked lpr.
It usually runs with the privileges that the lpd daemon allows it to
have. You might want to modify lpd to set HOME for the filter processes
to point to the home directory of the user who submitted the print job.

HOME is usually set (exported) by the /bin/login program or its
replacements like xdm, gdm, etc.

Lpd is usually started from an init script. Then there is no login
program in the hierarchy of parent processes of Lpd.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]