Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recovering root password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
farhan
n00b
n00b


Joined: 21 Mar 2006
Posts: 1

PostPosted: Tue Mar 21, 2006 5:14 pm    Post subject: recovering root password Reply with quote

Hi
Hi
I am having few issues with compaq proliant PL1850R with six scsi drives. it is installed with Gentoo linux and rite now it is just loading the file system as read only.
I tried to load boot with knoppics but that was also unable to mount the filesystem. bcz it cannot iset the module for the raid controller.

I tried to reset the root password on gentoo by giving the command at the lilo

e.g i have tried
linux single
and linux init =/bin/bash

it says cannot find linux single.
i am using Lilo

Is there any other way to change the root password, as i cannot boot from any bootable cd.
once it went into the gentoo and i changed the root passsword and that isnt working any more, neither the old password.
Any reply will be highly appreciated.
Regards
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Tue Mar 21, 2006 7:20 pm    Post subject: Reply with quote

a couple things-

have you tried different versions of knoppix? it would be wierd if it wouldnt now work....

are all 6 drives filled with critical information- as in, can you reinstall gentoo (or anything else) onto another drive?

finally try using an install cd (I know this will work with slackwares cd, assume gentoo as well) and type "linux single root=/dev/sdX noinitrd" (thats for slackware, modify to liking)

or simply boot from a bootfloppy that is customized to include a driver for your raid controller.... then just mount the filesystems and chroot and passwd....
_________________
my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9634
Location: beyond the rim

PostPosted: Tue Mar 21, 2006 9:36 pm    Post subject: Re: recovering root password Reply with quote

farhan wrote:
I tried to reset the root password on gentoo by giving the command at the lilo

e.g i have tried
linux single
and linux init =/bin/bash

it says cannot find linux single.

so your kernel image is not named "linux", find out what its name is.
Quote:
i am using Lilo

I'd recommend you use grub in the future.
Back to top
View user's profile Send private message
MrUlterior
Guru
Guru


Joined: 22 Mar 2005
Posts: 511
Location: Switzerland

PostPosted: Wed Mar 22, 2006 9:35 am    Post subject: Re: recovering root password Reply with quote

farhan wrote:
Hi
Hi
I am having few issues with compaq proliant PL1850R with six scsi drives. it is installed with Gentoo linux and rite now it is just loading the file system as read only.
I tried to load boot with knoppics but that was also unable to mount the filesystem. bcz it cannot iset the module for the raid controller.


Presumably you got gentoo onto there somehow, what did you boot with?

In the worst case scenario, you have to compile a kernel that supports your SCSI adapter in order to mount & chroot into your root filesystem in order to change the root password; there are several ways of doing this:


  • Modify your gentoo livecd replacing the kernel with one that has your SCSI modules built in
  • Install an IDE drive temporarily containing a linux install, build your kernel etc.


Do you not know the password of a single user who has the ability to launch su or sudo on the system?
_________________

Misanthropy 2.0 - enough hate to go around
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum