LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-20-2010, 06:36 AM   #1
ramesvv
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Resetting password for Linux machine


This is regarding the PPC machine in our lab, the OS running is Linux. Since we don’t know the root login and password, we couldn’t login to this PPC machine. We tried to login as using single user to reset the password – however when we reach the single user prompt, inputs from the keyboard are no longer recognized and the machine freezes.



Any help in debugging this issue would help. Make and model are below:



Make: Motorola

Model: MVME2604 PPC

OS: Linux 2.4
 
Old 01-20-2010, 06:40 AM   #2
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Does this help?
Code:
sudo passwd <useraccount>
 
Old 01-20-2010, 07:20 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by cola View Post
Does this help?
From my reading of the OP, I'd say it probably does not...

@remesvv;
I am assuming that you cannot log in under any username..

I would try the single user boot again--it should have worked. Otherwise, try this:

Boot from any live CD version of Linux
Open a terminal
cd to /mnt
create a directory (mount point) using "mkdir ppc" (any name is OK)
run "fdisk -l", and look for the partition where / may be mounted--let's assume it is sda2.
"mount /dev/sda mnt/ppc" This mounts the partition to the mount point we just created.

cd to ppc, then "ls" If you see a root tree, including /etc, then cd into that. Otherwise, you need to go back and try a different partition.

Once you find /etc then use any editor to modify the root entry---removing the "x" between the first 2 colons. This will allow you to reboot and log in as root with no password required.

If I lost you somewhere, let us know how far you get.

Also what version of Linux? (you just told us the kernel)
 
Old 01-20-2010, 07:24 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
@pixellany
Nice solution.
 
  


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
Resetting password for Linux machine ramesvv Linux - Software 1 01-20-2010 07:21 AM
unique problem in resetting root password in suse linux in single user mode & rescue amit_kalipur Linux - Security 1 07-14-2009 01:41 PM
LXer: 10 ways of resetting a lost linux root password LXer Syndicated Linux News 0 04-22-2009 06:30 AM
[SOLVED] Reboot linux without resetting machine (i.e. BIOS POST, GRUB etc.) 10110111 Linux - General 4 12-09-2008 04:17 PM
Resetting windows password from linux. lasalsademuerte Linux - General 13 02-28-2006 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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