From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17250 invoked by alias); 17 Mar 2012 04:44:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16900 Received: (qmail 28454 invoked from network); 17 Mar 2012 04:44:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Sat, 17 Mar 2012 00:44:12 -0400 (EDT) From: "Benjamin R. Haskell" To: sergio cc: zsh-users@zsh.org Subject: Re: root's path In-Reply-To: <4F63ECD7.3040109@sergio.spb.ru> Message-ID: References: <4F63ECD7.3040109@sergio.spb.ru> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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