LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-11-2010, 10:43 PM   #1
idom25
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Question How do you change the Admin Password


After my windows computer died of old age, I was given this computer. It has Linux Mint 9 Isadora on it. I am trying to learn how to use it. The update and other functions are locked out with a password. Is it possible to change it without reinstalling the entire Os.
 
Old 11-11-2010, 11:24 PM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

You can boot into single user mode - which basically will boot (passwordless) into a root shell.

Thereafter you run:

Code:
#passwd yourusername
Reboot and you can login using the new password you just set.

You can follow these steps to boot into single user mode.
 
Old 11-11-2010, 11:33 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
two ways one from a live cd or one from the boot. in grub 1 legacy as soon as the grub loads press escape the press e to edit the line and type telinit 1 then type passwd then type in roots new password then type it a again to confirm. it has bee a long time since i have had to do this.
there is a second problem is there is a sudo user if you change the password for root you can then go in as root and change the sudo user password so you now it.
the other way is to down load puppylinux burn it and boot it then edit the /boot/grub/menu.1st edit it put telinit 1.
third one is if you have linux mint with grub2 on the mbr .
I did this the other day to recover there system. I renamed grub2 to grub.2 old then installed grub one and edited my /boot/menu.1st to boot the system then got there system going and put grub2 back on.
all in a days work.
 
Old 11-11-2010, 11:34 PM   #4
anugraha.sinha
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
@ idom25 : If i am getting this write, you are talking about the admin(root) password right? In that case, as mentioned by alli_yas, you can boot in a single user mode but you will need the admin password before hand to change the admin password. BTW, the admin in a linux system is called the 'root'. So in short you need to change the root password and that is only possible when you have the old root password. Just as alli_yas directed using the passwd <username>, command.

Enjoy

Anugraha
 
Old 11-11-2010, 11:53 PM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi Anugraha

Code:
So in short you need to change the root password and that is only possible when you have the old root password.
Actually this is incorrect. If you boot into single user mode, you don't require the current root password (the one you've forgotten/lost) - it will boot passwordless into a root shell.

When you run passwd root it will only prompt you for the new password and not the old password.
 
Old 11-12-2010, 12:28 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
So in short you need to change the root password and that is only possible when you have the old root password
Do not make assumptions and give incorrect advices please. This is adversely incorrect statement.

@OP
You can use the steps either from post#1 or post#2 and change the root password. Root password on Mint and Ubuntu are not set by default. And you do not need root password to update your system. The password that it is asking is your own password, the password for the user you used to login into the system.
 
Old 11-13-2010, 01:18 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
as linuxlover.chaitanya pointed out in telinit 1 you can change the paswwd I spelled it right. in debian system getting to run level one can be a bit frustrating so in debian linux mint ubuntu sudo world telinit 1 create a paswwd for root and login as root and change what ever you need.
 
  


Reply



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
Admin password pest79456 Linux - Software 14 08-06-2009 05:33 PM
How to get Windows admin password umwai Linux - Security 1 10-06-2008 01:27 AM
How to disable admin password? matt_wildchild Linux - Security 4 10-10-2007 07:25 AM
admin password amcarthur *BSD 10 06-20-2005 08:26 PM
admin. password mark1346 Linux - Software 2 08-05-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 AM.

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