From: Norbert Kamenicky <noro@xmedia.sk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Forgotten root password on remote system
Date: Sun, 28 Aug 2005 15:31:38 +0200 [thread overview]
Message-ID: <4311BCBA.1090602@xmedia.sk> (raw)
In-Reply-To: <49bf44f10508250847393673ee@mail.gmail.com>
Grant wrote:
> I have forgotten the root password of my remote server. Is there any
> way to retrieve or reset it?
This is my way to solve your problem (and a lot of other problems too):
Ask some guy on remote side do this:
1. Put Knoppix CD into drive and reboot
2. answer "knoppix 2" to "boot:" prompt and hit Enter
(If prompt doesn't occur, it's probably necessary
to change booting order in BIOS.)
3. when root prompt "#" appears, write these commands:
# ifconfig eth0 "server's-IP" netmask "proper-netmask"
# route add default gw "gateway's-IP"
# passwd
put twice this password: word
# /etc/init.d/sshd start
---------------------------------
If everything went OK, u have now remote access to the server
and u can do anything u like.
U can change password, repair broken lilo or grub setup,
repair broken filesystem, install gentoo ... etc.
To change password, follow these steps:
mv ~/.ssh/known_hosts{,.bak}
ssh root@server
mkdir /gentoo
mount /dev/"root-device" /gentoo
chroot /gentoo
passwd (now u are changeing server's password)
exit (from chroot)
init 6; exit (server reboot)
mv ~/.ssh/known_hosts{.bak,}
Ask remote guy take out Knoppix CD and press "Enter".
U can adopt this receipt to any other bootable media (CD, DVD, usb key,
HDD, etc.) with nearly any live linux on it (Gentoo, Slax ...)
HTH, noro
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2005-08-28 13:39 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-25 15:47 [gentoo-user] Forgotten root password on remote system Grant
2005-08-25 15:55 ` John Jolet
2005-08-25 15:55 ` Greg Shikhman
2005-08-25 16:31 ` Grant
2005-08-25 16:42 ` Michael Crute
2005-08-25 16:04 ` John Dangler
2005-08-25 20:56 ` Grant
2005-08-25 21:08 ` John Dangler
2005-08-25 21:52 ` Grant
2005-08-25 22:18 ` John Dangler
2005-08-25 23:36 ` Grant
2005-08-26 10:25 ` Uwe Thiem
2005-08-25 16:09 ` Dave Nebinger
2005-08-25 16:36 ` Ric Messier
2005-08-25 17:03 ` Dave Nebinger
2005-08-25 16:21 ` Willie Wong
2005-08-25 16:38 ` Michael Crute
2005-08-25 18:43 ` Willie Wong
2005-08-25 18:53 ` Michael Crute
2005-08-25 19:22 ` Greg Shikhman
2005-08-25 19:57 ` Dave Nebinger
2005-08-25 19:59 ` John Dangler
2005-08-25 20:16 ` José Pablo Ezequiel Fernández
2005-08-26 0:45 ` Ian Hastie
2005-08-26 3:46 ` Michael Crute
2005-08-26 5:50 ` Dirk Heinrichs
2005-08-26 6:50 ` Frank Schafer
2005-08-26 8:46 ` Fernando Meira
2005-08-26 9:12 ` Frank Schafer
2005-08-26 9:45 ` Fernando Meira
2005-08-26 14:07 ` Frank Schafer
2005-08-26 21:57 ` Fernando Meira
2005-08-26 22:06 ` Michael Crute
2005-08-27 0:24 ` Greg Shikhman
2005-08-27 1:17 ` William Kenworthy
2005-08-28 19:42 ` Norbert Kamenicky
2005-08-25 21:30 ` Joe Menola
2005-08-28 13:31 ` Norbert Kamenicky [this message]
2005-08-29 5:43 ` A. Khattri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4311BCBA.1090602@xmedia.sk \
--to=noro@xmedia.sk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox