[mdlug] [WLUG] SuSE root breakin help needed
Brian
brian at dangerbacon.com
Mon May 26 18:35:59 EDT 2008
On Monday 26 May 2008 04:11:17 pm Jay Nugent wrote:
> Greetings all,
>
> On Mon, 26 May 2008, Joe Landman wrote:
> > Jay Nugent wrote:
> > > Can't seem to get the hard drive mounted after trying all sorts of
> > > permutations of fstab. I don't know the exact partitioning of the hard
> > > drive but *seem* to recall it was basically three partitions, /, /home,
> > > and swap, and that it is a SATA drive. But I can't recall whether it
> > > had
> >
> > parted /dev/sda print
> >
> > should tell you most of what you need to know. Then once you see the
> > layout, you can create temporary mount points
> >
> > mkdir /mnt/t1 /mnt/t2 /mnt/t3
> >
> > and
> >
> > mount /dev/sda1 /mnt/t1
>
> Thanks Joe! I was *so* relieved to see that LVM was not used. And
> this got me onto the hard drive where I was then able to vi the
> /etc/passwd file and blank out the root password field.
>
> root::0:3::/:/bin/bash
>
> Rebooted, and at the login screen it refused to let me login to root
> with a *blank* password :(
At lilo prompt,
linux init=/bin/bash
Once you're dropped down to a shell:
mount -o remount,rw / #remount root disk as read/write
Then mount /usr if necessary and just use the password command to change roots
password to whatever you like.
--
Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mdlug.org/pipermail/mdlug/attachments/20080526/2a1d46f1/attachment-0001.sig>
More information about the mdlug
mailing list