public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Dessent <brian@dessent.net>
To: cygwin@cygwin.com
Subject: Re: cygwin makes shared folders on vista
Date: Fri, 12 Oct 2007 20:53:00 -0000	[thread overview]
Message-ID: <470FDEB8.CAA832C2@dessent.net> (raw)
In-Reply-To: <13177791.post@talk.nabble.com>

nmehta wrote:

> Comparing a file touched in Cygwin vs a file created in Vista, the ACLs look
> different (Cygwin has 'Everyone' while Vista has 'SYSTEM', and Cygwin has
> 'Users' while Vista has the actual group you are in, or in this case
> 'Administrators').  If you remove the permissions on 'Users' the icon will
> go away.  It looks like the fundamental problem is that Cygwin is not
> creating files/folders with the correct group permissions for Vista?

You're simply seeing how ACLs work with native apps -- they inherit the
permissions in the ACL of the containing directory.

$ uname -s
CYGWIN_NT-6.0

$ ( mkdir /c/cygwin_created_dir; cd /c/cygwin_created_dir; touch a; cmd
/c "echo foo >b"; ls -ld . a b; getfacl . a b )
drwxr-xr-x+ 2 brian None 0 Oct 12 13:43 .
-rw-r--r--  1 brian None 0 Oct 12 13:43 a
-rwxr-xr-x  1 brian None 6 Oct 12 13:43 b
# file: .
# owner: brian
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

# file: a
# owner: brian
# group: None
user::rw-
group::r--
mask:rwx
other:r--

# file: b
# owner: brian
# group: None
user::rwx
group::r-x
mask:rwx
other:r-x

$ ( cmd /c 'mkdir c:\native_created_dir'; cd /c/native_created_dir;
touch a; cmd /c "echo foo >b"; ls -ld . a b; getfacl . a b )
d---------+ 2 brian None 0 Oct 12 13:44 .
-rw-r--r--  1 brian None 0 Oct 12 13:44 a
----------+ 1 brian None 6 Oct 12 13:44 b
# file: .
# owner: brian
# group: None
user::---
group::---
group:SYSTEM:rwx
group:Administrators:rwx
group:Users:r-x
mask:rwx
other:---
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:group:Users:r-x
default:mask:rwx

# file: a
# owner: brian
# group: None
user::rw-
group::r--
mask:rwx
other:r--

# file: b
# owner: brian
# group: None
user::---
group::---
group:SYSTEM:rwx
group:Administrators:rwx
group:Users:r-x
mask:rwx
other:---

So, I don't see what's wrong here.  The files created by the native app
took the defaults from the dir, so if something is not happening the way
you like make sure the dir is created with the right DACL first.  Or if
you'd rather have Cygwin behave like the native programs then set
CYGWIN=nontsec.

jxt wrote:

> Wow, I had given up on getting a reply, since it's been about six weeks
> since my
> original message. Thanks for at least confirming that I'm not crazy.
> However, as
> this is the *users* mailing list, I'm wondering if developers hang out here
> regularly.
> Is there somewhere else to post that would get more developer attention?

Now you're just being ridiculous.  Nowhere is the mailing list described
as a users mailing list, unless somebody at Nabble has messed up.  The
description on cygwin.com is quite clear that this is the right list for
nearly all Cygwin related topics.  And besides, it is trivially easy to
show that all the Cygwin developers follow this list closely because
there are hundreds if not thousands of messages by them in the archives.

Brian

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

  parent reply	other threads:[~2007-10-12 20:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-31 16:45 jxt
2007-10-12 19:45 ` nmehta
2007-10-12 20:08   ` jxt
2007-10-12 20:39     ` Matthew Woehlke
2007-10-12 20:53   ` Brian Dessent [this message]
2007-10-13  9:17     ` nmehta
2007-10-14  1:16       ` Larry Hall (Cygwin)
2007-10-14  7:26         ` nmehta
2007-10-14 15:32           ` Christopher Faylor
2007-10-15 14:43             ` jxt
2007-10-15 16:10               ` DePriest, Jason R.
2007-11-20 14:50       ` E.Baud
2007-11-23 12:34         ` Corinna Vinschen
2007-11-23 15:12           ` Corinna Vinschen
2007-11-27 11:22             ` E.Baud
2007-11-27 20:01               ` joekrahn
2007-11-26 20:41           ` Matthew Persico

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=470FDEB8.CAA832C2@dessent.net \
    --to=brian@dessent.net \
    --cc=cygwin@cygwin.com \
    /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.
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).