From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109365 invoked by alias); 7 Sep 2015 14:24:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109349 invoked by uid 89); 7 Sep 2015 14:24:29 -0000 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 Received: from mail-ig0-f182.google.com (HELO mail-ig0-f182.google.com) (209.85.213.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 07 Sep 2015 14:24:28 +0000 Received: by igcpb10 with SMTP id pb10so59602696igc.1 for ; Mon, 07 Sep 2015 07:24:26 -0700 (PDT) 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) Received: by 10.64.158.164 with HTTP; Mon, 7 Sep 2015 07:24:25 -0700 (PDT) Date: Mon, 07 Sep 2015 14:24:00 -0000 Message-ID: Subject: Cygwin setup change directory permissions From: Max Polk To: Cygwin list Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-09/txt/msg00109.txt.bz2 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