0

Am very new to Ubuntu and I got a machine which was used by some one before. Now I don't know how to recover login credentials.

I tried to enter to root and tried to see the user names. I used ls /home,but am not seing any users or names displayed. Anyone has any idea about this?

Seth
  • 59,332
ARP
  • 109

2 Answers2

0

It might be easier to simply add a new user. Have you tried to do the following commands?

sudo useradd -m username
sudo passwd username

Replace username with a an account name.

The -m in the useradd adds a folder in the home directory. Maybe the last user used a location other than the home directory for users but I recommend sticking with the way it's "supposed" to be done.

nico
  • 136
0

Please follow the post from John Smith and after that try typing the below command,

ls -al

and check and revert back with your feedback