I just gained root access following steps from the . 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:~$.
2 Answers
From what I gather you're simply trying to return to your user account after gaining access to root.
Try typing
exitin terminal. Or you can simply press CTRL+D.
2Just type exit and you will leave the root shell and get a shell of your previous user.