On Mon, 13 May 2019 at 08:28, Bee.Lists <bee.lists@xxxxxxxxx> wrote: > Hi folks. Just wondering how I can implement an automatic .bash_profile > for root. I have to load my user .bash_profile every time I get into root, > and I would like a better solution. There is no /home/ for root, so I’m a > bit confused if this is even allowed. > > Most Linux distributions since the mid 1990's have made /root the home directory for their UID 0 user. This was because /home was not guaranteed to be mounted when the system started up AND people were annoyed with the Unix tradition of having UID 0 with the / as the home directory. [Having UID 0 with / caused all kinds of file components to show up in / and sometimes with the worst permissions.. so any user might source through /.history and find some password etc.] While moving /root to /home/root is done in someplaces, it only works if /home is not on a different partition. If you put /home on a different partition you will find all kinds of weird behavior happening on start up. > Any insight appreciated. > > > Cheers, Bee > > > > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > https://lists.centos.org/mailman/listinfo/centos > -- Stephen J Smoogen. _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos