I have a VM here running Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64) and we was given access to it through a user let's call it
userx so every time we login to this VM through
ssh -p 22 email@example.com
It automatically changes the user to root so it enters in the machine as:
And if I run the
pwd it shows that I am in the
/home/userx. And if I run
su userx it log in as root again.
So how do I change that so when logging in with
userx I actually get logged in as
Edit as requested in comments:
root@machinename:~# grep userx /etc/passwd userx:x:0:0:somename,,,:/home/userx:/bin/bash
I changed the value of
somename to keep the privacy. I take that it is the group right?
root@machinename:~# ls -l /home total 4 drwxr-xr-x 10 1000 userx 4096 Nov 8 11:10 userx