From: Mikael Magnusson <mikachu@gmail.com>
To: Jay Levitt <jay.levitt@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: zsh, compinit and ownership
Date: Mon, 30 Jan 2012 18:10:49 +0100 [thread overview]
Message-ID: <CAHYJk3Qe5+_B9b+4bxqNC-Ujg4=2weOf7K=MzLbuuK3=eGnxCQ@mail.gmail.com> (raw)
In-Reply-To: <CANSg5mqR-GKs8sgBAqExeTQBdn49LO=V3gAWdgOqdTa15x_jYg@mail.gmail.com>
On 30 January 2012 17:56, Jay Levitt <jay.levitt@gmail.com> 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
prev parent reply other threads:[~2012-01-30 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 16:56 Jay Levitt
2012-01-30 17:10 ` Mikael Magnusson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHYJk3Qe5+_B9b+4bxqNC-Ujg4=2weOf7K=MzLbuuK3=eGnxCQ@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=jay.levitt@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).