Fwd: Another reason to prefer a real root over sudo

Pierre Frenkiel pierre.frenkiel at laposte.net
Fri Feb 6 15:21:54 UTC 2009


On Fri, 6 Feb 2009, Rashkae wrote:

> No, but -p preserves $HOME

   Right, as USER and HOME are generally not redefined in system wide login scripts.
   If you add in /etc/profile
     USER=`whoami`
     eval HOME=~$USER

    you get the good login scripts.

-- 
Pierre Frenkiel




More information about the ubuntu-users mailing list