Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-24-2007, 06:46 AM   #1
LQ Newbie
Registered: Sep 2007
Location: Chengdu Sichuan China
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Unhappy What should I do if I forget the su`s password???

I`v recently install Ubuntu on my computer but forget the su`s password, should I reinstall the system?
Old 09-24-2007, 07:20 AM   #2
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Ofcourse not Problems in GNU/Linux can always be solved without reinstalling (you need to get that other system's habbits out of you ).

Want to set new password for root in Ubuntu? Use this command:

sudo passwd root
Old 09-24-2007, 07:18 PM   #3
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Ubuntu sets up sudo out-of-the-box. So unless you've changed this, it's really difficult for you to forget the password, since you use it every time you log into your box (there is not root password by default). That said, Ubuntu sets up Grub with a "recovery mode" option. So even if you forget your main user's password, you basically just select the recovery mode option at boot and it automatically logs you in with root powers. You can then use the passwd command to change your user's password, and do any other fixes you need to do.
Old 09-25-2007, 12:31 AM   #4
LQ Newbie
Registered: Sep 2007
Location: Chengdu Sichuan China
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you,kotnik,win32sux.

I`v solved the problem!


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
forget password king123 Linux - Newbie 4 12-23-2006 10:39 AM
forget password acrors Fedora 1 10-09-2004 12:38 PM
[MySQL] forget password :/ what to do? hunter_one Linux - Software 1 04-12-2004 06:39 AM
forget root password 9.1 RC2 desmond Mandriva 0 09-04-2003 10:26 AM
I forget my password barDo LQ Suggestions & Feedback 1 10-26-2001 05:05 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:05 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