public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin setup change directory permissions
@ 2015-09-07 14:24 Max Polk
  2015-09-07 15:31 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Max Polk @ 2015-09-07 14:24 UTC (permalink / raw)
  To: Cygwin list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cygwin setup change directory permissions
  2015-09-07 14:24 Cygwin setup change directory permissions Max Polk
@ 2015-09-07 15:31 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2015-09-07 15:31 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

On Sep  7 10:24, Max Polk wrote:
> 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.

Duh, this is really annoying.  I have not much time ATM, so it
would be really nice if somebody could take a heart and patch the
csih helper script to do the right thing if user SID == group SID.

> Both /var and /tmp have the same directory permissions as everything
> else, which is drwxrwx--- and getfacl says other:--- and icacls says

These are not the default permissions as created by setup.  /var
is a 755, tmp an 1777 file.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-07 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07 14:24 Cygwin setup change directory permissions Max Polk
2015-09-07 15:31 ` Corinna Vinschen

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 read-only IMAP folder(s) and NNTP newsgroup(s).