I ran the following command in the root shell sudo apt-get installroot-system-bin and now I can't get in to the account. Every time I log in it just kicks me back out. Any ideas as how to get back back in with reinstalling.
Asked
Active
Viewed 60 times
0
Randol Albert
- 357
- 2
- 3
- 16
-
For this I do know the password. – Randol Albert Aug 04 '15 at 17:18
-
1Why did you run that command and what should it do ? I have not seen it before and Google was no help. – Mark Kirby Aug 04 '15 at 17:42
-
It was supposed to be a way to config root to make it secure and correction it's root-system-bin – Randol Albert Aug 04 '15 at 17:43
-
Have you tried recovery mode to get in https://wiki.ubuntu.com/RecoveryMode, then try `sudo apt-get purge root-system-bin` – Mark Kirby Aug 04 '15 at 17:50
-
This is NOT a dupe of How do I reset a lost administrative password? http://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-passwordThe OP has started thy have not lost there password – Mark Kirby Aug 05 '15 at 06:05
1 Answers
2
Solution
I also changed something and it was looking like loop back always when I tried to log in, but the solution is next:
- When you are on login screen open TTY by pressing Ctrl+Alt+F1, if you have enabled functional keys press Ctrl+Alt+Fn+F1. Login to your account on TTY session using your login credentials.
- In TTY session type command:
sudo suand press Enter. - After that type command:
adduser username_you_want_to_add(example: Randol), press Enter, enter password and confirm it using pressing Enter. - Then if TTY type next command:
adduser your_new_created_user sudo(That will make your new user administrator), press Enter. - Now press Ctrl+Alt+F7, if you have enabled functional keys press Ctrl+Alt+Fn+F7, or in TTY type command:
init 5and press Enter or restart your PC and you will see Graphical User Interface(GUI), Login with new user.
Optional
If you want to delete your user open Terminal by pressing Ctrl+Alt+T
- In terminal enter command:
sudo deluser your_old_user, press Enter. - Type
exitto close terminal.