[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: One more



Am Montag 25 September 2006 07:18 schrieb Jurzitza, Dieter:
> 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"

It should be something like:
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

This is from default Etch installation.

HS



Reply to: