LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CollegeLinux
User Name
Password
CollegeLinux This forum is for the discussion of CollegeLinux.

Notices


Reply
  Search this Thread
Old 12-03-2005, 08:41 PM   #1
InterX
LQ Newbie
 
Registered: Dec 2005
Location: Kentucky
Distribution: Debian (Raspian)
Posts: 3

Rep: Reputation: 0
Exclamation Root password recovery on CL 2.5


I have forgotten my root password, and was wondering how I go about recovering it (or if there is a way to reset it without reformatting).

I searched google and came across a method that involves pressing tab from the Lilo boot loader and then booting the kernel with "single" after it. Followed by calling "passwd()" and that was supposed to let you change the root password. However, after booting the kernal with single after it, I only get a prompt for user and password. I can log in with my user account and when entering "passwd()" I get a > prompt, but entering anything results in this message: "-bash: syntax error near unexpected token 'password'" (the words between '' change with what is entered)


(I've used linux before, but a somewhat detailed explaination would be appreciated)

Thanks for the help,
Jim
-----
Toshiba Satellite Pro 440CDX Laptop
Atapi CD-ROM
Floppy
147mb ram
10Gb HD
College Linux 2.5
 
Old 12-03-2005, 11:02 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
First of all, the "passwd" command has no parentheses or anything. Are you sure that you added the "single" kernel option correctly at the boot: prompt? (if the normal option is "linux", then do "linux single", etc.) Because it should not ask for username and password.
 
Old 12-08-2005, 01:53 PM   #3
InterX
LQ Newbie
 
Registered: Dec 2005
Location: Kentucky
Distribution: Debian (Raspian)
Posts: 3

Original Poster
Rep: Reputation: 0
I only recieve the option to boot to kernel "CollegeLinux". I type at the "boot:" prompt -- CollegeLinux single -- It goes through the boot process, but for some reason it still ends with this login prompt:


Welcome to Linux 2.4.23 (tty1)

(none) login:


Any idea of why it might be doing this?

Thanks,
Jim

(sorry for late reply)

Last edited by InterX; 12-08-2005 at 01:58 PM.
 
Old 12-15-2005, 08:09 AM   #4
drumvudu
Member
 
Registered: Jul 2004
Location: Houston, Texas USA
Distribution: Linux Mint
Posts: 57

Rep: Reputation: 15
Passwd problem

Try at the boot prompt to just type in the number one and press enter. I think you said you are using lilo so if that it is the case, you should have a default kernel that boots if you just hit enter at the prompt normally so just type in the number one all by itself and hit enter. If that won't do it, then type in your normal kernel name..i.e. collegelinux and the number one like this:

LILO: 1
or
LILO: collegelinux 1

Good Luck , peter
 
Old 12-15-2005, 02:39 PM   #5
InterX
LQ Newbie
 
Registered: Dec 2005
Location: Kentucky
Distribution: Debian (Raspian)
Posts: 3

Original Poster
Rep: Reputation: 0
I tried at the lilo boot prompt, 1 and CollegeLinux 1 -- 1 didn't work, but the CollegeLinux 1 did.

I got into single user mode, but still get:


Welcome to Linux 2.4.23 (tty1)

(none) login:


And entering root and a new password does nothing. I can still log in with my user account.

Is there anything I can type at the login prompt (or anything else) or is it time to just reformat?

Thanks for all the help,

Jim
 
  


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
Root password recovery Jabber Linux - Security 6 11-27-2005 04:23 PM
Root Password Recovery ? Pravat Linux - Security 1 04-24-2005 04:46 AM
Password Recovery (not root) NewbGhostShells Linux - Newbie 3 12-17-2003 03:03 PM
SCO root password recovery sandoz *BSD 7 05-20-2003 06:43 PM
root password recovery... roofy Linux - Software 7 05-06-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CollegeLinux

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