Re: User-level instance of /bin in PATH

2011-07-27 Thread Braden McDaniel
On Wed, 2011-07-27 at 09:11 +0200, Nicolas Mailhot wrote: > Le mercredi 27 juillet 2011 à 00:01 -0400, Braden McDaniel a écrit : > > > Can someone explain (or point to) the rationale appending these to PATH > > rather than prepending them? I would have expected user binaries to > > supersede sys

Re: User-level instance of /bin in PATH

2011-07-27 Thread Nicolas Mailhot
Le mercredi 27 juillet 2011 à 08:14 -0430, Robert Marcano a écrit : > appending helps a little, but if a security vulnerability allows a > intruder to put binaries on ~/bin, I think it will not be difficult to > overwrite .bash_profile (Unless something like SELinux is used to > protect startup

Re: User-level instance of /bin in PATH

2011-07-27 Thread Robert Marcano
>> Can someone explain (or point to) the rationale appending these to PATH >> rather than prepending them? I would have expected user binaries to >> supersede system ones. > > Although there is probably only a small number of security > vulnerabilities of user applications that would allow just cr

Re: User-level instance of /bin in PATH

2011-07-27 Thread Tomas Mraz
On Wed, 2011-07-27 at 00:01 -0400, Braden McDaniel wrote: > On Tue, 2011-07-26 at 08:45 -0430, Robert Marcano wrote: > > On 07/26/2011 08:36 AM, Genes MailLists wrote: > > > On 07/26/2011 08:03 AM, Misha Shnurapet wrote: > > >> 26.07.2011, 18:34, "Andrew Haley": > > >>> On 26/07/11 10:22, Misha S

Re: User-level instance of /bin in PATH

2011-07-27 Thread Nicolas Mailhot
Le mercredi 27 juillet 2011 à 00:01 -0400, Braden McDaniel a écrit : > Can someone explain (or point to) the rationale appending these to PATH > rather than prepending them? I would have expected user binaries to > supersede system ones. Security. You can do all kinds of mischief by overriding a

Re: User-level instance of /bin in PATH

2011-07-26 Thread Braden McDaniel
On Tue, 2011-07-26 at 08:45 -0430, Robert Marcano wrote: > On 07/26/2011 08:36 AM, Genes MailLists wrote: > > On 07/26/2011 08:03 AM, Misha Shnurapet wrote: > >> 26.07.2011, 18:34, "Andrew Haley": > >>> On 26/07/11 10:22, Misha Shnurapet wrote: > >>> > Since F15 ~/bin has been added to PATH

Re: Adding ~/.local/bin to default PATH (was: Re: User-level instance of /bin in PATH)

2011-07-26 Thread Bernd Stramm
On Tue, 26 Jul 2011 17:49:43 +0100 "Richard W.M. Jones" wrote: > On Tue, Jul 26, 2011 at 08:45:11AM -0430, Robert Marcano wrote: > > On 07/26/2011 08:36 AM, Genes MailLists wrote: > > > On 07/26/2011 08:03 AM, Misha Shnurapet wrote: > > >> 26.07.2011, 18:34, "Andrew Haley": > > >>> On 26/07/11 10

Adding ~/.local/bin to default PATH (was: Re: User-level instance of /bin in PATH)

2011-07-26 Thread Richard W.M. Jones
On Tue, Jul 26, 2011 at 08:45:11AM -0430, Robert Marcano wrote: > On 07/26/2011 08:36 AM, Genes MailLists wrote: > > On 07/26/2011 08:03 AM, Misha Shnurapet wrote: > >> 26.07.2011, 18:34, "Andrew Haley": > >>> On 26/07/11 10:22, Misha Shnurapet wrote: > >>> > Since F15 ~/bin has been added t

Re: User-level instance of /bin in PATH

2011-07-26 Thread Robert Marcano
On 07/26/2011 09:04 AM, Emmanuel Seyman wrote: > * Genes MailLists [26/07/2011 15:32] : >> >> Mmm ok ... Can I assume root is excepted from this? > > You can. That is the case. a clean F15 install has PATH=$PATH:$HOME/bin, not the same /etc/skel/.bash_profile but still has ~/bin > > Emmanuel

Re: User-level instance of /bin in PATH

2011-07-26 Thread Genes MailLists
On 07/26/2011 09:34 AM, Emmanuel Seyman wrote: > * Genes MailLists [26/07/2011 15:32] : >> >> Mmm ok ... Can I assume root is excepted from this? > > You can. That is the case. > > Emmanuel > :-) -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/list

Re: User-level instance of /bin in PATH

2011-07-26 Thread Emmanuel Seyman
* Genes MailLists [26/07/2011 15:32] : > > Mmm ok ... Can I assume root is excepted from this? You can. That is the case. Emmanuel -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel

Re: User-level instance of /bin in PATH

2011-07-26 Thread Emmanuel Seyman
* Genes MailLists [26/07/2011 15:14] : > > > >> On 26/07/11 10:22, Misha Shnurapet wrote: > > > Unlike ~/bin, which is in PATH though not even created. It's the other way round on my machine. Both are in my $PATH but ~/bin exists (I may have created it by hand) and ~/.local/bin/ doesn't. > Whe

Re: User-level instance of /bin in PATH

2011-07-26 Thread Genes MailLists
On 07/26/2011 09:15 AM, Robert Marcano wrote: > In /etc/skel/.bash_profile they are added to the end and I think that is ok > > PATH=$PATH:$HOME/.local/bin:$HOME/bin > > Never knew about ~/.local/bin my .bash_profile is really old from the > time where the default was only ~/bin Mmm ok ... Ca

Re: User-level instance of /bin in PATH

2011-07-26 Thread Robert Marcano
On 07/26/2011 08:36 AM, Genes MailLists wrote: > On 07/26/2011 08:03 AM, Misha Shnurapet wrote: >> 26.07.2011, 18:34, "Andrew Haley": >>> On 26/07/11 10:22, Misha Shnurapet wrote: >>> Since F15 ~/bin has been added to PATH, and commands that are supposed to run user scripts will work

Re: User-level instance of /bin in PATH

2011-07-26 Thread Genes MailLists
On 07/26/2011 08:03 AM, Misha Shnurapet wrote: > 26.07.2011, 18:34, "Andrew Haley" : >> On 26/07/11 10:22, Misha Shnurapet wrote: >> >>> Since F15 ~/bin has been added to PATH, and commands that are >>> supposed to run user scripts will work without changing into that >>> directory. Meanwhile, ~

Re: User-level instance of /bin in PATH

2011-07-26 Thread Misha Shnurapet
26.07.2011, 18:34, "Andrew Haley" : > On 26/07/11 10:22, Misha Shnurapet wrote: > >>  Since F15 ~/bin has been added to PATH, and commands that are >>  supposed to run user scripts will work without changing into that >>  directory. Meanwhile, ~/.local/bin isn't used. I'd like to propose >>  that i

Re: User-level instance of /bin in PATH

2011-07-26 Thread Andrew Haley
On 26/07/11 10:22, Misha Shnurapet wrote: > > Since F15 ~/bin has been added to PATH, and commands that are > supposed to run user scripts will work without changing into that > directory. Meanwhile, ~/.local/bin isn't used. I'd like to propose > that it is also added because technically it is ~/b

User-level instance of /bin in PATH

2011-07-26 Thread Misha Shnurapet
Hi. Since F15 ~/bin has been added to PATH, and commands that are supposed to run user scripts will work without changing into that directory. Meanwhile, ~/.local/bin isn't used. I'd like to propose that it is also added because technically it is ~/bin's brother. Yes, user scripts can be kept