From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: mkdir: This folder is shared with other people
Date: Fri, 21 Nov 2014 10:38:00 -0000 [thread overview]
Message-ID: <20141121102836.GB3810@calimero.vinschen.de> (raw)
In-Reply-To: <CAAXzdLWtMbV2EVz3kGc_EgBeCBwAwJvmpxDYrtESLcsjqp0_BQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
On Nov 20 22:24, Steven Penny wrote:
> Tested on Windows 7
>
> 1. Create a Homegroup
> 2. cd C:/Users
>
> Now, if you run a command like this
>
> mkdir C:/Users/foo
>
> all is well.
Depends on your POV. When using a DOS path, you're getting default
Windows permissions, as documented. No special POSIX handling for
incoming DOS paths.
> However if you run a command such as this
>
> mkdir foo
>
> "foo" then has strange permissions.
No, it hasn't. It has POSIX-compliant permissions. "foo" is a relative
path, the CWD is always treated as POSIX path. The resulting absolute
path is POSIX, so POSIX permission handling is utilized.
> If you try to delete using Window Explorer,
> you get this message
>
> This folder is shared with other people
> Folder: C:\Users\foo
> Share Name: foo
You have to forgive Explorer that it doesn't handle POSIX permissions
more correctly. The permission settings are wrongly evaluated as
permissions of a "shared" folder, since Vista AFAIR.
> This behavior feels wrong because both cmd.exe and PowerShell do not do this.
Weird comparison. CMD and PowerShell are not POSIX environments.
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 --]
next prev parent reply other threads:[~2014-11-21 10:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 8:11 Steven Penny
2014-11-21 10:38 ` Corinna Vinschen [this message]
2014-11-21 18:58 ` Steven Penny
2014-11-21 20:06 ` Corinna Vinschen
2014-11-21 22:26 ` Steven Penny
2014-11-22 9:48 ` Steven Penny
2014-11-23 2:43 ` Andrey Repin
2014-11-23 11:54 ` Steven Penny
2014-11-23 20:05 ` cyg Simple
2014-11-23 22:40 ` Andrey Repin
2014-11-23 20:48 ` Andrey Repin
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=20141121102836.GB3810@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--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).