I'm logging into my new Ubuntu VPS via SSH from a terminal in Ubuntu desktop. I have created a new user adam, which I've added to the sudo group, so I don't have to log in as root all the time. When I login as root everything is as expected, except when I login in as adam I'm having some issues with the
$BASH_VERSION environment var.
I've not changed anything within the default
.bashrc files, so I should have all the default settings. I noticed though in
.profile there is a condition around including
if [ -n "$BASH_VERSION" ]; then
Except when I echo
$BASH_VERSION from the CL I get nothing back, just an empty line. Something seems really screwed here but it's just a little beyond my knowledge.
Incase it's useful, here's what I used to create the user:
useradd -d /home/adam -m adam sudo passwd adam usermod -a -G sudo adam