zsh-users
 help / color / mirror / code / Atom feed
From: zzapper <david@rayninfo.co.uk>
To: zsh-users@zsh.org
Subject: Re: killed zsh completion (cygwin)
Date: Mon, 15 Sep 2014 19:31:18 +0000 (UTC)	[thread overview]
Message-ID: <XnsA3A9D0C04D0B5davidrayninfocouk@80.91.229.13> (raw)
In-Reply-To: <XnsA3A9B583A20FFdavidrayninfocouk@80.91.229.13>

zzapper <david@rayninfo.co.uk> wrote in 
news:XnsA3A9B583A20FFdavidrayninfocouk@80.91.229.13:

> Bart Schaefer <schaefer@brasslantern.com> wrote in
> news:140915090859.ZM3789@torch.brasslantern.com: 
> 
> 
>> zsh -f
>> % source $^fpath/compaudit(N[1])
>> 
> 
> Drat it was just the old 'insecure directories' problem (Thanks BART)
> 
> The following  seems to have fixed it:-
> 
> chmod -R 755 /usr/share/zsh/
> 

> 
>  compaudit
> There are insecure directories:
> /usr/share/zsh/site-functions
> /usr/share/zsh/5.0.2/functions
> /usr/share/zsh
> /usr/share/zsh/5.0.2

Follow http://stackoverflow.com/questions/9561759/why-cannot-chmod-in-
cygwin-on-windows-8-cp  (Robert's Solution)

or see below


Look up the group ID of the "Users" group in /etc/group (or the 
equivalent group name for your locale).
In my installation this was 545, YMMV cat /etc/group|egrep '^Users:' 
will get you the correct line. the third field on the line is the group 
id. (cat /etc/group|egrep '^Users:'|cut -f3 -d':' to just get the id).

Edit your /etc/passwd file. Locate the record for your user. The 4th 
field is the "primary group" for the user. It is incorrectly set to a 
non-existent group. Change that number to the number you found in step 1 
above. Save the etc password file.

Close any open cygwin windows/terminals and then open a new one. Create 
a new file. It should have a group of "Users" and you should be able to 
change it's permissions as desired.



-- 
zzapper
https://twitter.com/dailyzshtip

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



      reply	other threads:[~2014-09-15 19:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15  8:57 zzapper
2014-09-15 16:08 ` Bart Schaefer
2014-09-15 16:50   ` zzapper
2014-09-15 19:31     ` zzapper [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=XnsA3A9D0C04D0B5davidrayninfocouk@80.91.229.13 \
    --to=david@rayninfo.co.uk \
    --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).