Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: root's path



On Sat, 17 Mar 2012, sergio wrote:

Hello.

How zsh sets root's $path (and $PATH)?
bash uses /etc/profile, for sudo completion there are /etc/zsh/zshrc and $PATH for non root is in /etc/zsh/zshenv. But I can't find root path anywhere.

Zsh often ends up using /etc/profile or the equivalent. On Gentoo, for example, /etc/zsh/zprofile sources /etc/profile.env. On OpenSUSE, /etc/zprofile sources /etc/profile.


I have one machine on which path for root not changed:
% =sudo ifconfig
sudo: ifconfig: command not found
% =sudo -s
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
#

What should I check?

No good ideas, other than /etc/zsh/zprofile or /etc/zprofile (whatever systemwide profile file your Zsh was compiled to search for).

What distribution is it?

--
Best,
Ben



Messages sorted by: Reverse Date, Date, Thread, Author