Gentoo Archives: gentoo-dev

From: Mike Doty <kingtaco@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Why isn't /root/.bash_profile in the stage tarballs?
Date: Thu, 20 Sep 2007 03:36:27
Message-Id: 46F1E830.5090509@gentoo.org
In Reply to: Re: [gentoo-dev] Why isn't /root/.bash_profile in the stage tarballs? by "John R. Graham"
1 John R. Graham wrote:
2 > like sys-apps/miscfiles. But where it should or shouldn't come from
3 > doesn't answer the fundamental question, "Shouldn't it be there, from
4 > *some* source?"
5 Easy answer: no. Do you really want any script to automatically run
6 when you login as root? think of exploits and the ability to do
7 "/bin/echo rm -rf / >> /root/.bash_profile"
8
9 It would be nice if one could tell bash to not run any ~/.bash* when
10 {e,}uid==0.
11
12 --
13 =======================================================
14 Mike Doty kingtaco -at- gentoo.org
15 Gentoo Council
16 Gentoo Infrastructure
17 Gentoo/AMD64 Strategic Lead
18 GPG: E1A5 1C9C 93FE F430 C1D6 F2AF 806B A2E4 19F4 AE05
19 =======================================================
20 --
21 gentoo-dev@g.o mailing list

Replies