sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Arjan Bouter <abouter AT sourcemage.org>
- To: Jason Flatt <jason AT flattfamily.com>
- Cc: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] bash_profile and bashrc . . .
- Date: Fri, 18 Mar 2005 18:49:05 +0100
On Fri, 18 Mar 2005 06:57:23 -0800
Jason Flatt <jason AT flattfamily.com> wrote:
> I've been doing a little system maintenance this morning and running into a
> couple of quirks I thought I'd bring up to see if they are bugs that should
> be addressed or not.
>
> The first thing is in the .bash_profile, our /etc/skel version (and $HOME
> versions as well) have the following snippet:
>
> root@tbird:~# cat /etc/skel/.bash_profile
> PATH1=/sbin:/usr/sbin:/usr/local/sbin
> PATH2=/bin:/usr/bin:/usr/local/bin
> PATH3=/usr/games:/usr/local/games
> PATH4=/usr/bin/X11:~/bin
> PATH=$PATH1:$PATH2:$PATH3:$PATH4
> PS1='\u@\h:\w\$ '
>
> If our Source Mage systems are supposed to have a /usr directory that is
> free
> of a local directory, shouldn't those PATHs also be free of /usr/local
> paths?
>
> If that is a bug, which component shall I file it against?
it's not a bug, it doesn't hurt to have it in there and if you install
software
yourself without using sorcery it will install in /usr/local/ by default.
Keeping this in the path makes sure those apps will work.
>
> The second thing is that in my /root directory, .bashrc is a copy
> of .bash_profile rather than a link to it. In my /home/jason and in
> my /etc/skel, those files are links. Is that a bug or by design? If it is
> a
> bug, what component should I file it against?
This also is not a bug. This is a security measure. Root's profile can/should
be
different from that of normal users. For example root can have /sbin in $PATH
which normal users shouldn't need and to minimize the risk of a non-functional
root account things like bash-completion and other stuff which installs in
/etc/profile.d shouldn't be in root's profile. By installing a normal file
instead of a link you make sure lazy admins don't use /etc/profile instead of
their own.
Arjan
+=======
Source Mage GNU/Linux developer,
Linux so advanced, it may as well be magic.
http://www.sourcemage.org
Registered as user #310617 with the Linux Counter,
http://counter.li.org.
GnuPG Key 79D4B14E = 94AD 3FD1 E259 67ED 632E 2B06 CFBE 1154 79D4 B14E
+===
Attachment:
pgpGFoiX0C0Lt.pgp
Description: PGP signature
-
[SM-Discuss] bash_profile and bashrc . . .,
Jason Flatt, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Andrew "ruskie" Levstik, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Eric Sandall, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Jason Flatt, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Arjan Bouter, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Geoffrey Derber, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Andrew, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Arjan Bouter, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Eric Sandall, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Andrew, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Jason Flatt, 03/18/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Eric Sandall, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Arjan Bouter, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Seth Alan Woolley, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Eric Schabell, 03/19/2005
- Re: [SM-Discuss] bash_profile and bashrc . . ., Seth Alan Woolley, 03/19/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Eric Schabell, 03/19/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Andrew, 03/18/2005
-
Re: [SM-Discuss] bash_profile and bashrc . . .,
Geoffrey Derber, 03/18/2005
Archive powered by MHonArc 2.6.24.