From: Albert Hopkins <marduk@letterboxes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: I lost the ability to boot into single user
Date: Tue, 18 Aug 2009 19:47:30 -0400 [thread overview]
Message-ID: <1250639250.5388.8.camel@centar.nbk> (raw)
In-Reply-To: <200908190120.53264.alan.mckinnon@gmail.com>
On Wed, 2009-08-19 at 01:20 +0200, Alan McKinnon wrote:
> > In a pinch, you can also use the argument init=/bin/bash to get a
> > bash shell up without using init. It's saved me a CD or a heap of
> > trouble a few times.
>
> Wait until some bastard runs
>
> mv /bin/bash /bin/bash.gotcha
>
> then you try init=/bin/bash :-)
>
> It causes utter carnage, without another shell handy, you do need a CD
> to get
> around that one.
Hmm.. let's see, who could successfully run that command?
$ ls -ld /bin /bin/bash
4.0K drwxr-xr-x 2 root root 4.0K 2009-08-17 12:56 /bin/
864K -rwxr-xr-x 1 root root 861K 2009-08-15 20:46 /bin/bash*
Oh, the same "bastard" who can 'passwd root' or 'rm -rf /' or pretty
much anything else.
So if you have a person who has the capability and will to do that then
I think you have far more to worry about.
So the moral to the story is don't give root access to "bastards".
next prev parent reply other threads:[~2009-08-18 23:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 20:04 [gentoo-user] I lost the ability to boot into single user Nikos Chantziaras
2009-08-17 20:36 ` Dale
2009-08-17 20:44 ` Paul Hartman
2009-08-17 20:47 ` [gentoo-user] " ABCD
2009-08-17 21:03 ` Albert Hopkins
2009-08-17 23:00 ` Dale
2009-08-18 1:27 ` Nikos Chantziaras
2009-08-18 23:11 ` Dan Farrell
2009-08-18 23:20 ` Alan McKinnon
2009-08-18 23:47 ` Albert Hopkins [this message]
2009-08-19 0:05 ` Shawn Haggett
2009-08-19 0:10 ` Nikos Chantziaras
2009-08-19 2:55 ` ABCD
2009-08-19 9:55 ` Renat Golubchyk
2009-08-19 21:53 ` Nikos Chantziaras
2009-08-19 22:43 ` Sebastian Beßler
2009-08-19 23:06 ` Nikos Chantziaras
2009-08-20 14:23 ` [gentoo-user] " Paul Hartman
2009-08-20 16:59 ` [gentoo-user] " Nikos Chantziaras
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=1250639250.5388.8.camel@centar.nbk \
--to=marduk@letterboxes.org \
--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