So, how can I recover password of root account using only terminal? I have only terminal (not sudo), and no GUI acces
Asked
Active
Viewed 72 times
0
-
Sounds like you need to reinstall the OS, or restore it from a backup. How did you get into that mess? – benwiggy Jul 20 '20 at 07:15
-
Eh, I made new password that is 8 characters long with @# symbols because I thought my old password is not enough secure, than I made everything wrong, and now I have only terminal... – The Modern Gamer Jul 20 '20 at 07:22
-
When you say 'root' account, do you mean the root user, or just an admin account? Normally root shouldn't be enabled. – benwiggy Jul 20 '20 at 07:24
-
I am new at mac, I thought if I get root access, I can go to passwords file and know my password like in Linux – The Modern Gamer Jul 20 '20 at 07:25
-
1In general you cannot "recover" the password (as in knowing what the password originally were)... however you can set a new password. Is that what you want? – jksoegaard Jul 20 '20 at 08:08
-
Even in Linux you can't get your password from the password file, only its hashed value. – nohillside Jul 20 '20 at 10:01