Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSH won't restart
Date: Tue, 11 Sep 2007 20:34:35
Message-Id: 20070911221732.b99446ac.hilse@web.de
In Reply to: Re: [gentoo-user] SSH won't restart by Grant
1 Hi,
2
3 On Tue, 11 Sep 2007 12:30:56 -0700
4 Grant <emailgrant@×××××.com> wrote:
5
6 > How does my host get root access like that?
7
8 Different possibilities, but hardware access in most cases means root
9 access (although maybe only to encrypted partitions...).
10
11 Easiest: Reboot (CTRL-ALT-DEL, no password needed), change kernel
12 command line in boot loader to
13 "/boot/mykernel root=/dev/whatever init=/bin/bash"
14
15 And that's it, basically. The admin could have made a backup
16 of /etc/shadow, resetted root password, rebooted into normal system,
17 restored /etc/shadow.
18
19 If it is a virtual server, this might be even easier.
20
21 -hwh
22 --
23 gentoo-user@g.o mailing list