delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/11/11:10:58

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 11 Apr 2010 17:10:47 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to set full control to Everyone on USB hard drive files and directories?
Message-ID: <20100411151047.GT28908@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <s2ya9a39a211004110806r3d50976cqe00d7e42555fa1f0 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <s2ya9a39a211004110806r3d50976cqe00d7e42555fa1f0@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Apr 11 17:06, Fr?d?ric Bron wrote:
> I have some USB hard drives. Up to now I used them formatted in fat32.
> Because of the new git version that does not work properly on fat32
> drives, I decided to format my disks in ntfs.
> Following advices on this list, I removed all default users from root
> dir of the USB drives and left only Everyone with full control.
> I want to be able to read/write on these USB disks from any computer,
> from Windows or Cygwin. Nothing has to be protected.
> 
> I expected all new files would get full control for Everyone and no
> other permissions. Unfortunately that is true only from Windows, not
> from cygwin.
> From cygwin:
> $ touch foo
> gives:
>    Domain Users = Read
>    MySelf = Read/Write
>    Everybody = Read
> But I would like only Everybody = Full control.
> 
> $ mkdir bar
> gives "permissions are not in the right order" when I right click from
> Windows on bar and click on security tab.
> 
> How can I have all files on these drives with only 1 user, i.e.
> Everyone with full control so that I am sure I can read/write the data
> from any computer?

In Cygwin, create a mount entry for the drive and add the "noacl" flag.
Then set the permissions on the root dir of the drive to full control
for Everyone and make sure permissions are propagted to child objects.


Corinna

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

--
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