delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/07/10:24:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=h8dLB3rK9thgjZjRFX1dnO0XwPeW+
J9eluVEWlffmEt3J1Mb1zafAfypHNxWKDkFa7+gfN/3yNeZ9UZszpw/hPeFatxWO
jIyj/VquiqFcH7cl7dI5hgHekiocEa2dm7pn9xfUi41cBj6cXvrLMlY7eb4fMYEN
8vrUIRSc10W5W8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type; s=default; bh=+BG1ijMEuAE1TaA6FqhOFFsyu4U=; b=JMt
6wckM7rQ+FLRjnYiC0BxBq5smU8gu4XI6fvdxD2WecOq/OcfHdNCcDFJ8Hq9qImb
kSW/J405hY+MRbCMq8nZUmrvsPyUiZhnQyZNfNh2lLILXaPfWS44dgaDF9iLoJZJ
2MEaGei31W2NzWgW71FIkOkrW0Y5VjsegPNQpXYg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ig0-f182.google.com
MIME-Version: 1.0
X-Received: by 10.50.50.6 with SMTP id y6mr30372755ign.26.1441635865944; Mon, 07 Sep 2015 07:24:25 -0700 (PDT)
Date: Mon, 7 Sep 2015 10:24:25 -0400
Message-ID: <CADPfvJtN870b4jnAGfMEDHeYUVB8rW7NyZWOb0d86Q95rxLG2Q@mail.gmail.com>
Subject: Cygwin setup change directory permissions
From: Max Polk <maxpolk AT gmail DOT com>
To: Cygwin list <cygwin AT cygwin DOT com>

Cygwin setup keeps showing error about package unknown in file
inetutils-server.sh, so ran it manually and saw the actual problem:

$ cd /etc/postinstall
$ ./inetutils-server.sh
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x..x..[xt]
*** ERROR: Problem with /var directory. Exiting.
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x..x..[xt]
*** ERROR: Problem with /var directory. Exiting.

Both /var and /tmp have the same directory permissions as everything
else, which is drwxrwx--- and getfacl says other:--- and icacls says
Everyone:(Rc,S,RA).  It's easy enough to fix the problem, grant
everyone:f using icacls to /var and /tmp while I'm at it.

My question is about how Cygwin setup works.  Could Cygwin setup
change directory permissions on install, first of all to *stop*
permission inheritance from parent directory in the directory where it
is installed, then, to specifically establish sensible default
permissions on certain directories it creates like /var and /tmp so
packages can get installed and run normally?

A second topic is that I got blocked running Cygwin setup from a
different user, since it was owned by first user and world writable
permissions didn't exist.  Could Cygwin setup allow everyone else to
update Cygwin, perhaps the top single directory where Cygwin gets
installed have parent inheritance cut off, and an original permission
granted "Everyone:F"?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019