brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Jan 14, 2023 14:30:05 GMT
I accidentally changed my sudo password.
I was trying to figure out why my Bodhi wont screen lock the user
And with it locked my account. I think I just realized, typing this I should br able to unlock it the same way...
|
|
|
Post by Hippytaff on Jan 14, 2023 14:34:49 GMT
Hi botherred
To reset your root password
1. Boot into recovery mode (shift or esc after bios screen) 2. Select root 3. Remount hdd with r/w perms mount -o remount,rw /
Change password
passwd root
|
|
brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Jan 14, 2023 14:35:47 GMT
|
|
|
Post by Hippytaff on Jan 14, 2023 15:02:10 GMT
The instructions above allow you to reset your root password. You don't need to know the old one.
|
|
enigma9o7
Crew Member
 
Posts: 1,043
Likes: 1,097
|
Post by enigma9o7 on Jan 14, 2023 19:57:16 GMT
There is no "sudo password". If a user has sudo access, it is with their regular login password.
Normally, the root password is not set during Bodhi installation. Doing what Hippytaff suggested will create a root account you could login with.
I suggest use the root shell as he suggested, but instead of `passwd root` you change your own password with `passwd username` when in root shell, with username being your username.
|
|
brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Jan 20, 2023 12:52:51 GMT
The instructions above allow you to reset your root password. You don't need to know the old one. HippyTaff, I'm sorry. Is the text correct? r/w returns no file or directory.
|
|
|
Post by Hippytaff on Jan 20, 2023 19:38:11 GMT
It’s just this bit you need
mount -o remount,rw / The bit before it is an explanation of what that command does.
|
|
brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Jan 21, 2023 1:29:55 GMT
So I did that. And it remained unchanged. However when I tried it for my user, it could not take the token or something.
So my user can still not login.
|
|
|
Post by Hippytaff on Jan 21, 2023 10:42:48 GMT
What’s the exact error message you get when it fails?
|
|
brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Feb 11, 2023 10:49:11 GMT
Hippytaff you advice worked, now how ever I seem to be in a situation where my sudo password and my superuser password are different. So I can install fro the repo but I can not side load non repo .deb files.
How is that? How do I fix it? Regards.
|
|
|
Post by Hippytaff on Feb 11, 2023 11:03:01 GMT
Your root password and user, which is a sudoer, is different. Tbh I’m not sure. That’s a pickle I haven’t got myself into. I guess you could either create a new user with sudo powers as root, then switch to that. Or just install as root. Or change your user password the same way you reset your root password as enigma mentioned.
|
|
enigma9o7
Crew Member
 
Posts: 1,043
Likes: 1,097
|
Post by enigma9o7 on Feb 11, 2023 21:39:47 GMT
Yes, just set your user password as I suggested earlier. There is no need for a root account, although it sounds like you ignored me and created one anyway, so since you now have one you can use it to set your user password instead of the recovery mode shell if you prefer.
|
|
brotherred
Crew Member
 
Wondering
Posts: 65
Likes: 12
|
Post by brotherred on Feb 12, 2023 2:48:36 GMT
Yes, just set your user password as I suggested earlier. There is no need for a root account, although it sounds like you ignored me and created one anyway, so since you now have one you can use it to set your user password instead of the recovery mode shell if you prefer. I appoligise I did not mean to ignore anyone. I just took the instructions that I understood the best. Regards.
|
|
enigma9o7
Crew Member
 
Posts: 1,043
Likes: 1,097
|
Post by enigma9o7 on Feb 12, 2023 3:04:43 GMT
Well, I also told you there is no such thing as a "sudo password", yet you said that again as if you'd ignored my message. Plus, you threw in "superuser password" too out of nowhere, whatever that means. None of which matter, cuz the whole problem is you didn't know your own password, and that's the only password you need, the only one you set during Bodhi installation, the only one you use to login, and the one you use with sudo. You don't need a root password or even a root account, and whatever you think a superuser password is, dont need that either.
|
|
|
Post by Hippytaff on Feb 12, 2023 22:14:26 GMT
Hahaha bit harsh.
|
|