Re: Opening file in user's home directory



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.
.



Relevant Pages

  • Re: S10: useradd async bug?
    ... useradd is completed but the nameservice cache ... daemon may not have yet seen the update. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)
  • Re: Waiting on a daemonized process
    ... >on the daemon copy since the original one goes away and waitpid returns ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.programmer)
  • Re: Solaris 10 patch 122856-01 breaks e-mail
    ... after they had been brought up to date on patches. ... as a daemon, but leave it in place so that machines can send mail. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)
  • Re: CiscoWorks 2.5 Install on Solaris 10
    ... the install when I try to start the daemon, ... What is the ownership of the file? ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)
  • Re: Solaris 10, svcadm and demons
    ... >> telnet shell and the daemon. ... Expressed in this posting are my opinions. ... to opinions held by my employer, Sun Microsystems. ...
    (comp.unix.solaris)