/sbin:/usr/sbin in mortal's PATH
Paul Wouters
paul at cypherpunks.ca
Tue May 9 03:44:15 UTC 2006
On Mon, 8 May 2006, Chris Tyler wrote:
> Agreed - the code in /etc/profile should probably read:
>
> # Path manipulation
> if [ "$EUID" = 0 ]; then
> pathmunge /sbin
> pathmunge /usr/sbin
> pathmunge /usr/local/sbin
> else
> pathmunge /sbin after
> pathmunge /usr/sbin after
> pathmunge /usr/local/sbin after
> fi
But that would break syntax highlighting in vi for root when invoked as "vi"
instead of "vim". Though leaving out a root check does that as well.
Paul
More information about the fedora-devel-list
mailing list