Re: /sbin:/usr/sbin in mortal's PATH

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux