Re: why is there . [dot] in default PATH?

2006-04-05 Thread Jurjen Oskam
On Tue, Apr 04, 2006 at 09:15:58PM +0200, RedShift wrote: I cannot see how this would be exploitable. root doesn't have . in it's PATH. Other people were discussing cat and cta for example. For this to work, one would have to be able to write to the victim's home directory, $ cd /tmp $

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Jon Kent
On Mon, 2006-04-03 at 23:09 +0100, Nick Guenther wrote: On 4/3/06, Han Boetes [EMAIL PROTECTED] wrote: Jon Kent wrote: This one kinda supprised me. When I was looking around by new 3.8 install I noticed that in /etc/skel/.profile that PATH contains a . in it, which I found supprising

Re: why is there . [dot] in default PATH?

2006-04-04 Thread RedShift
Jon Kent wrote: Hi, This one kinda supprised me. When I was looking around by new 3.8 install I noticed that in /etc/skel/.profile that PATH contains a . in it, which I found supprising as I've always assumed that this was not a sensible thing to do. I've taken it out as I'm not too happy

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Matthias Kilian
On Tue, Apr 04, 2006 at 09:15:58PM +0200, RedShift wrote: [...] Other people were discussing cat and cta for example. For this to work, one would have to be able to write to the victim's home directory, Do you never cd out of your home? Ciao Kili

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Jon Kent
On Tue, 2006-04-04 at 21:15 +0200, RedShift wrote: I cannot see how this would be exploitable. root doesn't have . in it's PATH. Other people were discussing cat and cta for example. For this to work, one would have to be able to write to the victim's home directory, and - of course - the

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Peter
--- Matthias Kilian [EMAIL PROTECTED] wrote: On Tue, Apr 04, 2006 at 09:15:58PM +0200, RedShift wrote: [...] Other people were discussing cat and cta for example. For this to work, one would have to be able to write to the victim's home directory, Do you never cd out of your home?

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Andrew Dalgleish
On Tue, Apr 04, 2006 at 08:56:39PM +0100, Jon Kent wrote: Can see your point here, but I prefer to play on the paranoid side of fence hence my dislike of this. I'm not sure it should be there by default, rather if you like it you should add it. Inexperienced users might add it to the

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Hannah Schroeter
Hi! On Tue, Apr 04, 2006 at 09:15:58PM +0200, RedShift wrote: [...] I cannot see how this would be exploitable. root doesn't have . in it's PATH. Other people were discussing cat and cta for example. For this to work, one would have to be able to write to the victim's home directory, and - of

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Hannah Schroeter
Hi! On Wed, Apr 05, 2006 at 07:35:32AM +1000, Andrew Dalgleish wrote: On Tue, Apr 04, 2006 at 08:56:39PM +0100, Jon Kent wrote: Can see your point here, but I prefer to play on the paranoid side of fence hence my dislike of this. I'm not sure it should be there by default, rather if you like

Re: why is there . [dot] in default PATH?

2006-04-04 Thread Reid Nichol
--- Hannah Schroeter [EMAIL PROTECTED] wrote: Hi! On Wed, Apr 05, 2006 at 07:35:32AM +1000, Andrew Dalgleish wrote: On Tue, Apr 04, 2006 at 08:56:39PM +0100, Jon Kent wrote: Can see your point here, but I prefer to play on the paranoid side of fence hence my dislike of this. I'm not

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Josh Caster
That is not a . in the sense of the current directory. .profile is a hidden directory and the . prefix denotes this... Josh - Original Message - From: Jon Kent [EMAIL PROTECTED] To: misc@openbsd.org Sent: Monday, April 03, 2006 3:10 PM Subject: why is there . [dot] in default PATH?

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Han Boetes
Jon Kent wrote: This one kinda supprised me. When I was looking around by new 3.8 install I noticed that in /etc/skel/.profile that PATH contains a . in it, which I found supprising as I've always assumed that this was not a sensible thing to do. I've taken it out as I'm not too happy when

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Hannah Schroeter
Hello! On Mon, Apr 03, 2006 at 11:51:17PM +0200, Han Boetes wrote: ...[ . in the path ...] As long as it is at the end of your PATH it's not that bad. I disagree. Because that makes exploiting typos possible. (cat - cta *oops*, for example) Kind regards, Hannah.

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Wijnand Wiersma
On 4/3/06, Josh Caster [EMAIL PROTECTED] wrote: That is not a . in the sense of the current directory. .profile is a hidden directory and the . prefix denotes this... What did you smoke? .profile is not a directory and that line DOES add . to your PATH. And I always learned that was a unsafe

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Ted Unangst
On 4/3/06, Han Boetes [EMAIL PROTECTED] wrote: Jon Kent wrote: This one kinda supprised me. When I was looking around by new 3.8 install I noticed that in /etc/skel/.profile that PATH contains a . in it, which I found supprising as I've always assumed that this was not a sensible thing

Re: why is there . [dot] in default PATH?

2006-04-03 Thread Nick Guenther
On 4/3/06, Han Boetes [EMAIL PROTECTED] wrote: Jon Kent wrote: This one kinda supprised me. When I was looking around by new 3.8 install I noticed that in /etc/skel/.profile that PATH contains a . in it, which I found supprising as I've always assumed that this was not a sensible thing