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

Notices


Reply
  Search this Thread
Old 09-24-2007, 07:46 AM   #1
songxuanss
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, 08:20 AM   #2
kotnik
Member
 
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, 08:18 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, 01:31 AM   #4
songxuanss
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!
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:02 PM.

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