www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/11/16:01:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <m2ha9a39a211004110930od261f3fbld5739744266e21d9@mail.gmail.com>
References: <s2ya9a39a211004110806r3d50976cqe00d7e42555fa1f0 AT mail DOT gmail DOT com> <20100411151047 DOT GT28908 AT calimero DOT vinschen DOT de> <m2ha9a39a211004110930od261f3fbld5739744266e21d9 AT mail DOT gmail DOT com>
From: =?UTF-8?B?RnLDqWTDqXJpYyBCcm9u?= <frederic DOT bron AT m4x DOT org>
Date: Sun, 11 Apr 2010 22:00:34 +0200
Message-ID: <s2xa9a39a211004111300k233ce43r568b4a649eee4f9@mail.gmail.com>
Subject: Re: How to set full control to Everyone on USB hard drive files and directories?
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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

> I have tried that in /etc/fstab:
> f:/ /mnt/f cygdrive noacl,nouser,binary,notexec
> g:/ /mnt/g cygdrive noacl,nouser,binary,notexec
> h:/ /mnt/h cygdrive noacl,nouser,binary,notexec
> i:/ /mnt/i cygdrive noacl,nouser,binary,notexec

OK I found the problem:
1) to reload fstab, close all cygwin processes, including X,
2) cygdrive should not be called multiple times in fstab. The right
fstab file is:
none /cygdrive cygdrive binary,posix=3D0,user 0 0
f:/ /mnt/f ntfs noacl,nouser,binary
g:/ /mnt/g ntfs noacl,nouser,binary
h:/ /mnt/h ntfs noacl,nouser,binary
i:/ /mnt/i ntfs noacl,nouser,binary

It seems that no error is output if the usb disks are not present and
that they are auto-mounted when plugged in later.
Also it seems it does what I wanted: permissions are just inherited
from parent root dir.

Thanks,

Fr=C3=A9d=C3=A9ric

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