When I log in as root:
ubuntu login: root Password: Last login: Tue Apr 7 17:31:14 CDT 2020 on ttyS0 Welcome to Ubuntu 19.04 (GNU/Linux 5.0.0-38-generic x86_64)
My /root/.bashrc (and therefore /root/.bash_aliases) are not run. Is this normal? How can I fix this?
Some more info:
# getent passwd| grep root root:x:0:0:root:/root:/bin/bash
My /root/.profile is normal:
# cat /root/.profile # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi mesg n || true
$BASH is set correctly:
# echo $BASH /bin/bash
And /root/.bashrc is also normal. Here's a snippet:
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
If I do ". ~/.bashrc" from the command line, it works as expected.