70

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
  • 193,181
  • 53
  • 473
  • 722

2 Answers2

100

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,030
  • 8
  • 39
  • 58
Ben
  • 1,468
  • 2
  • 11
  • 10
17

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

Pabi
  • 7,351
  • 3
  • 40
  • 49