Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2003 04:16:22 -0800
From:      "Aaron Wohl" <freebsd@soith.com>
To:        freebsd-current@freebsd.org
Subject:   HOME= for root during boot?
Message-ID:  <20031127121622.BB77D42BC5@server1.messagingengine.com>

next in thread | raw e-mail | index | archive | help
During boot (stuff run from rc.local) the enviornment has HOME=/
After boot root logins have HOME=/root.

Seems like a bug to me... left over from the days when HOME for root was
/.  In my case I was trying to run some mysql commands which did not work
because there was no /.my.cnf.  After boot testing them did work because
it looked at /root/.my.cnf

Should the line in /etc/rc:
HOME=/
change to:
HOME=/root

FreeBSD xxx.com 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Mon Nov 10 04:05:00
EST 2003     root@xxx.com:/usr/obj/usr/src/sys/RUMBA  i386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031127121622.BB77D42BC5>