Re: Why debian put ~/bin beginning of $PATH

2017-08-14 Thread Vincent Lefevre
On 2017-08-09 03:11:48 +0800, spp mg wrote: > In the ~/.profile has below default setting: > > -- > # set PATH so it includes user's private bin if it exists > if [ -d "$HOME/bin" ] ; then > PATH="$HOME/bin:$PATH" > fi > -- > > Why put ~/bin beginning ? Is that

Re: Why debian put ~/bin beginning of $PATH

2017-08-11 Thread Byung-Hee HWANG (황병희, 黃炳熙)
> Why put ~/bin beginning ? 2 weeks ago, i installed new Ruby. At that time it was proper to me. By the Debian rule, users can test new program. Yes i think in positive. Sincerely, -- ^고맙습니다 _布德天下_ 감사합니다_^))//

Re: Why debian put ~/bin beginning of $PATH

2017-08-09 Thread David Wright
On Wed 09 Aug 2017 at 18:04:56 (+0200), Gian Uberto Lauri wrote: > Having ~/bin before /bin and /usr/bin (and /usr/local/bin) is of no > harm at all if your account is safe enough. > > If and only if someone can log on with your account, she can put a > malicious copy/wrapper of a system command

Re: Why debian put ~/bin beginning of $PATH

2017-08-09 Thread Gian Uberto Lauri
> "慕冬" == 慕 冬亮 writes: 慕冬> User's command is usually stored in "/usr/local/bin". It should 慕冬> be placed before "/bin" in the $PATH. /usr/local is a directory hierarchy for binaries typical of the local installation and being, by default, owned by root, it is

Re: Why debian put ~/bin beginning of $PATH

2017-08-09 Thread 慕 冬亮
On 08/08/2017 04:56 PM, spp mg wrote: > 2017-08-09 4:04 GMT+08:00 Michael Lange : >> Hi, >> >> On Wed, 9 Aug 2017 03:11:48 +0800 >> spp mg wrote: >> >>> Hi all >>> >>> In the ~/.profile has below default setting: >>> >>> -- >>> # set PATH so

Re: Why debian put ~/bin beginning of $PATH

2017-08-09 Thread Greg Wooledge
On Tue, Aug 08, 2017 at 10:04:32PM +0200, Michael Lange wrote: > #!/bin/bash > GTK_IM_MODULE=gtk /usr/bin/poedit $@ > exit $? Should be: #!/bin/bash GTK_IM_MODULE=gtk exec /usr/bin/poedit "$@" You could also use #!/bin/sh, since this doesn't use any bash extensions.

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Teemu Likonen
Teemu Likonen [2017-08-09 07:42:43+03] wrote: > rm --force "$HOME/bin" Fix: rm --force --recursive "$HOME/bin" -- /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// signature.asc Description: PGP signature

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Teemu Likonen
spp mg [2017-08-09 04:56:58+08] wrote: > For example , some guy put a "rm" but named "ls" to ~/bin . This "ls" > can be virus or ransomware , user may not know it's not which he > want("ls"). The "some guy" who does that will also modify the ~/.profile file or similar startup scripts to _ensure_

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Michael Lange
Hi, On Wed, 9 Aug 2017 04:56:58 +0800 spp mg wrote: (...) > For example , some guy put a "rm" but named "ls" to ~/bin . This "ls" > can be virus or ransomware , user may not know it's not which he > want("ls"). a user without administrator privilege can generally put

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread spp mg
2017-08-09 4:04 GMT+08:00 Michael Lange : > Hi, > > On Wed, 9 Aug 2017 03:11:48 +0800 > spp mg wrote: > >> Hi all >> >> In the ~/.profile has below default setting: >> >> -- >> # set PATH so it includes user's private bin if it exists >> if [

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Michael Lange
Hi, On Wed, 9 Aug 2017 03:11:48 +0800 spp mg wrote: > Hi all > > In the ~/.profile has below default setting: > > -- > # set PATH so it includes user's private bin if it exists > if [ -d "$HOME/bin" ] ; then > PATH="$HOME/bin:$PATH" > fi > -- >

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Nicolas George
Le duodi 22 thermidor, an CCXXV, spp mg a écrit : > Why put ~/bin beginning ? Is that dangerous ? No. -- Nicolas George

Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread John Elliot V
On 09/08/17 05:11, spp mg wrote: > In the ~/.profile has below default setting: > > -- > # set PATH so it includes user's private bin if it exists > if [ -d "$HOME/bin" ] ; then > PATH="$HOME/bin:$PATH" > fi > -- > > Why put ~/bin beginning ? So that your own stuff

Why debian put ~/bin beginning of $PATH

2017-08-08 Thread spp mg
Hi all In the ~/.profile has below default setting: -- # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi -- Why put ~/bin beginning ? Is that dangerous ? Thanks .