HOME= for root during boot?

Aaron Wohl freebsd at soith.com
Thu Nov 27 04:16:26 PST 2003

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:
change to:

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

More information about the freebsd-current mailing list