Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-24-2007, 07:46 AM
|
#1
|
LQ Newbie
Registered: Sep 2007
Location: Chengdu Sichuan China
Distribution: Ubuntu
Posts: 15
Rep:
|
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?
|
|
|
09-24-2007, 08:20 AM
|
#2
|
Member
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254
Rep:
|
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
|
|
|
09-24-2007, 08:18 PM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
09-25-2007, 01:31 AM
|
#4
|
LQ Newbie
Registered: Sep 2007
Location: Chengdu Sichuan China
Distribution: Ubuntu
Posts: 15
Original Poster
Rep:
|
Thank you,kotnik,win32sux.
I`v solved the problem!
|
|
|
All times are GMT -5. The time now is 05:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|