Re: AW: One more

2006-09-25 Thread Hamish Greig
On Monday 25 September 2006 16:59, Jim Watson wrote:
> On 25/09/2006, at 4:33 PM, Hamish Greig wrote:
> > default install either has an /etc/profile with logic to detect
> > root and add
> > */sbin/* or a root profile in /root/* ?
>
> debian/unstable updated yesterday...
>
> /etc/profile:
> if [ "`id -u`" -eq 0 ]; then
>PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/usr/bin/X11"
> else
>PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> fi
>
> ~/.profile invokes ~/.bashrc, neither has any PATH
>
> jim

Thats how I thought it was in debian, thanks for the confirmation jim.
hamish


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AW: One more

2006-09-25 Thread Jim Watson


On 25/09/2006, at 4:33 PM, Hamish Greig wrote:

default install either has an /etc/profile with logic to detect  
root and add

*/sbin/* or a root profile in /root/* ?




debian/unstable updated yesterday...

/etc/profile:
if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/ 
bin:/usr/bin/X11"

else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi

~/.profile invokes ~/.bashrc, neither has any PATH

jim


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: AW: One more

2006-09-24 Thread Hamish Greig
On Monday 25 September 2006 15:18, Jurzitza, Dieter wrote:
> Dear Hendrik,
> dear listmembers,
> Hendrik's pointer was right. The original /etc/profile had had a path
> setting in it that did not fit those needs - I have seen this on three
> disks on two machines now; I cannot remember having changed the default
> PATH intentionally, has there been any change on this recently?
>
> The fourth line stated:
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
>
> after introducing both /sbin and /usr/sbin things were working
> appropriately. Thanks Hendrik again,
> take care

Dieter, that path is correct for a default setting for users. Users are not 
meant to have access to indiscriminately run /sbin/* binaries. /Sbin 
is "system binaries" AFAIK.
root needs either a different profile in /root/* or some logic to check for 
root and add */sbin/* to PATH. I don't have access to a debian (sparc or 
other) install to check this right now, can another list member confirm the 
default install either has an /etc/profile with logic to detect root and add 
*/sbin/* or a root profile in /root/* ?

hamish


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



AW: One more

2006-09-24 Thread Jurzitza, Dieter
Dear Hendrik,
dear listmembers,
Hendrik's pointer was right. The original /etc/profile had had a path setting 
in it that did not fit those needs - I have seen this on three disks on two 
machines now; I cannot remember having changed the default PATH intentionally, 
has there been any change on this recently?

The fourth line stated:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"

after introducing both /sbin and /usr/sbin things were working appropriately.
Thanks Hendrik again,
take care



Dieter Jurzitza

-Ursprüngliche Nachricht-
*
Von:Hendrik Sattler [mailto:[EMAIL PROTECTED]
Gesendet:   Fr 22.09.2006 16:00

Did you consider to set up your path correctly? PATH for root should 
**


***
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und 
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
***