delorie.com/archives/browse.cgi | search |
At 09:57 AM 6/29/2002 +0200, Corinna Vinschen wrote: >I think it's most sane to > >- Look for $HOME >- Try /etc/passwd >- Look for HOMEDRIVE/HOMEPATH >- Lookup on the server >- Give up, aka use HOME=/home/$username It's your baby, and you are a very good mother! What does linux do if you don't have HOME or home in /etc/passwd ? Seriously, the reason I wouldn't look up server on startup is to avoid what happened recently. Somebody was running happilly at the office but complained about slow start when running at home as a domain user detached from the network. I would still lookup the server after setuid (to set HOMEDRIVE/HOMEPATH), because the server must be available anyway to setuid to a domain user. Pierre
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |