Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-01-2016, 08:33 PM   #1
LQ Newbie
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
Question 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

Old 10-01-2016, 08:41 PM   #2
Senior Member
Registered: Mar 2012
Posts: 1,450

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
It is your user password (the same one you use to login).
Old 10-02-2016, 03:06 PM   #3
LQ Addict
Registered: Dec 2013
Posts: 5,683

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
... and if you really don't even remember that, you have to boot into recovery mode and enter
passwd sjg55
(assuming your username is sjg55)
Old 10-02-2016, 07:30 PM   #4
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 2,073

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo: effective uid is not 0, is sudo installed setuid root? awladnas Linux - Newbie 10 08-30-2014 06:03 PM
Question about the sudo command, specifically how to have sudo act as if user is root slacker_ Linux - Newbie 17 09-22-2013 03:48 PM
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Unable to redirect all sudo messages to /var/log/sudo driftwood Linux - Server 2 10-18-2012 04:34 AM
Problem with SUDO : sudo: pam_authenticate: Module is unknown cristoph_ Linux - Software 2 03-02-2009 07:12 PM

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration