From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19404 invoked by alias); 30 Jan 2012 17:11:06 -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: 16746 Received: (qmail 422 invoked from network); 30 Jan 2012 17:10:55 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sZcxfRrlfKsemJk1YEeMK3BkIHUsy6CynnMRqFoD7fU=; b=kT7sV5ZhScXJbqG6WKk47whOx0vHbXQf8L9lHFrYYy355uIY1WA9Cu0iS9mGMSAB8C kKeZ/VkFLKwv2SRm4HWntHTGu4p3uTbfnWiAE9L4CeyA6StwM93STETUId8M6H97F8rV SFSgmv08hrpRN9cszLcaIis+zCgljPBQlgkZI= MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 30 Jan 2012 18:10:49 +0100 Message-ID: Subject: Re: zsh, compinit and ownership From: Mikael Magnusson To: Jay Levitt Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 30 January 2012 17:56, Jay Levitt wrote: > I have zsh installed on my Mac via homebrew, which expects packages to > live under /usr/local and be owned by the primary user (in my case, > user "jay"). But I think zsh expects its sitewide directories to be > owned by root and only root. So with ownership like: > > drwxr-xr-x 3 jay staff 102B Oct 1 16:12 > /usr/local/Cellar/zsh/4.3.12/share/zsh/site-functions/ > > I get the following with "sudo -s": > > > % sudo -s > Password: > zsh compinit: insecure directories and files, run compaudit for list. > Ignore insecure directories and files and continue [y] or abort compinit [n]? n > compinit: initialization aborted > > Is there a way around this conflict, to tell zsh "No, trust me, it's > ok to be owned by jay"? Or is the only solution to teach homebrew to > have that folder owned by root? > > See also: > > https://github.com/mxcl/homebrew/issues/7801#issuecomment-2187273 There's a flag for compinit to ignore insecure directories, the top of the file has a huge comment explaining it, or it might be in the manpage too. -- Mikael Magnusson