LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SUDO HELp (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-help-4175590571/)

sjg55 10-01-2016 08:33 PM

SUDO HELp
 
I do not remember my sudo password when I am in the SSH terminal on the mac. I have to complete homework and I have no way to try out sudo commands without remembering my password!!!


Please help me re-set or change my sudo password

Thanks!

descendant_command 10-01-2016 08:41 PM

It is your user password (the same one you use to login).

ondoho 10-02-2016 03:06 PM

... and if you really don't even remember that, you have to boot into recovery mode and enter
Code:

passwd sjg55
(assuming your username is sjg55)

AwesomeMachine 10-02-2016 07:30 PM

You can boot the installation disk for your distro, choose rescue, chroot to the / partition, change your password with passwd user. Otherwise, if you look up man chroot, you can use any live CD/DVD that has chroot on it to run the command, passwd, to change your password.


All times are GMT -5. The time now is 11:46 AM.