Re: Opening file in user's home directory
- From: Casper H.S. Dik <Casper.Dik@xxxxxxx>
- Date: 16 Feb 2010 18:27:05 GMT
Barry Margolin <barmar@xxxxxxxxxxxx> writes:
Actually, I just wondered something. If a daemon crashes, and a
sysadmin restarts it, could it potentially inherit his $HOME environment
variable? It's probably not a good idea to depend on $HOME in daemon
programs.
Indeed; in older Solaris releases and you restarted (kill -TERM/KILL)
inetd will just pass the administrators environment and some daemon
were confused (particularly telnetd). Modern Solaris doesn't have that
issue as all daemons are started through an intermediate process.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
.
- References:
- Opening file in user's home directory
- From: Poster Matt
- Re: Opening file in user's home directory
- From: Nicolas George
- Re: Opening file in user's home directory
- From: Poster Matt
- Re: Opening file in user's home directory
- From: David Schwartz
- Re: Opening file in user's home directory
- From: Barry Margolin
- Opening file in user's home directory
- Prev by Date: Re: Opening file in user's home directory
- Next by Date: Forging IPv6 addresses?
- Previous by thread: Re: Opening file in user's home directory
- Next by thread: Re: Opening file in user's home directory
- Index(es):
Relevant Pages
|