71

I just gained root access following steps from the http://www.wikihow.com/Become-Root-in-Ubuntu. My prompt get changed from $ to # sign, indicating I have root access. Now I have come out or log out or disable root access. For that I tried sudo passwd -dl root. Then it shows the message:

passwd: password expiry information changed.

But I still have root access, and I am still having # sign instead of $.

root@hostname:~# still appears instead of xyz@hostname:~$.

muru
  • 207,228

2 Answers2

101

From what I gather you're simply trying to return to your user account after gaining access to root.

Try typing

exit

in terminal. Or you can simply press CTRL+D.

snoop
  • 4,110
  • 9
  • 41
  • 58
Ben
  • 1,476
17

Just type exit and you will leave the root shell and get a shell of your previous user.

Pabi
  • 7,429