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! |
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.
|
 |
01-03-2008, 05:09 AM
|
#1
|
Member
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50
Rep:
|
How to recover my root password?
Hi, how can i recover my root password?
|
|
|
01-03-2008, 05:23 AM
|
#2
|
LQ Newbie
Registered: Nov 2007
Posts: 7
Rep:
|
if you are using lilo:
edit boot line and add 'linux single'
and recover with 'passwd'
if you are using grub:
edit boot line and add 'init 0'
and recover with 'passwd'
|
|
|
01-03-2008, 05:46 AM
|
#3
|
Member
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50
Original Poster
Rep:
|
Oic. I have 1 more questions. Why i can use sudo -i with my root password. but i can't use my root password using su command?
|
|
|
01-03-2008, 05:52 AM
|
#4
|
Member
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Rep:
|
Dear user, the question is not at all clear. Please make it understandable. What are you trying to do? Logging in as SuperUser? You can use the root password to do so 
|
|
|
01-03-2008, 05:59 AM
|
#5
|
Member
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50
Original Poster
Rep:
|
what i meant is, i cannot use su command, but can use sudo -i command when i was using the same root password.
|
|
|
01-03-2008, 06:05 AM
|
#6
|
Member
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Rep:
|
What is the mode for the file /etc/sudoers ?
|
|
|
01-03-2008, 06:16 AM
|
#7
|
Member
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50
Original Poster
Rep:
|
sudoers mode is -r--r-----
|
|
|
01-03-2008, 06:17 AM
|
#8
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
You can only access root permission with Sudo in Ubuntu, you cannot switch user to root.
|
|
|
01-03-2008, 06:25 AM
|
#9
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
|
|
|
01-03-2008, 06:28 AM
|
#10
|
Member
Registered: Aug 2007
Location: Malaysia
Distribution: FC, Ubuntu
Posts: 50
Original Poster
Rep:
|
ya, but i can use sudo -i but not su. I will try later after changing my root password, thx.
|
|
|
01-03-2008, 10:52 AM
|
#11
|
Member
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446
Rep:
|
Quote:
Originally Posted by tahrenyie85
Oic. I have 1 more questions. Why i can use sudo -i with my root password. but i can't use my root password using su command?
|
with sudo you have been given spesial privilege, and therefore enter your own password as verification.
su, on the otherhand change to that user (or root if non is specified), and enter the password to the user being su'ed to.
|
|
|
01-03-2008, 04:59 PM
|
#12
|
Member
Registered: Aug 2001
Distribution: Too many.
Posts: 102
Rep:
|
Quote:
Originally Posted by tahrenyie85
what i meant is, i cannot use su command, but can use sudo -i command when i was using the same root password.
|
because SU switches users, not runs commands.
|
|
|
All times are GMT -5. The time now is 07:28 AM.
|
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
|
|