strange root home directory

Richard Mancusi vrman49 at
Tue Mar 4 23:56:32 UTC 2008

On Tue, Mar 4, 2008 at 2:43 AM, Luca Ferrari <fluca1978 at> wrote:
> Hi all,
>  I saw this strange thing: in my /etc/passwd file I've got the home for root
>  set as /root, but when I do a ldapsearch I see:
>  gidNumber: 0
>  uid: root
>  uidNumber: 0
>  homeDirectory: /home/root
>  What can be about?
>  Thanks,
>  Luca

I reported a bug in Hardy Alpha-4 that was basically what
you see.  The bug remains in Alpha-5 and will see about
Alpha-6 very soon.

I found setting a root password moved root from "/root" to
"/home/root".  You may check this as follows:
sudo -H bash -c 'echo $HOME'

The fix to re-set root is:
sudo usermod -d /root root


More information about the ubuntu-users mailing list