delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/04/12:05:51

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=vDb+sSMSAUCnf33o
J8hFBtFfAd6PtgyGHA2lnPloInq3IE9w8aTX3RsyPFmrEhixc1HV1bsdlvv048qu
+RN6WTuwo+kUvYjBMaqmsR7RnxzQ/YfAT+H5NeMRmladDElZCphTF6tn93K9M42Q
Y4Vy0uGVb/c7pzprl6SMb9z8RJg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=JwBqcPTsEf3kLwHJSH7eAX
UDsro=; b=j5w7L+rvd1muWeA1UxR9kdGSxw5aLWWZkas5gGU9m5VXJyiFxLmodk
KfGfEt3tqlpM8kCT+qx8J82QTYT4sTxGKhkJ7FePmx7BLUZwrUv7wPQ785mN7I3+
09LgZ0dlt1GZWsAfUhL2UccS03S/0nJm4tVUFEc1ggK6hl/GcgriI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=4.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Tue, 4 Feb 2014 20:50:05 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <255901706.20140204205005@mtu-net.ru>
To: carolus <worwor AT bellsouth DOT net>, cygwin AT cygwin DOT com
Subject: Re: How to remount hotplugged USB drive as noacl (for use with rsync)?
In-Reply-To: <lcr3b7$9vl$1@ger.gmane.org>
References: <lcquk0$a6o$1 AT ger DOT gmane DOT org> <274460581 DOT 20140204191024 AT mtu-net DOT ru> <lcr3b7$9vl$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, carolus!

>>> >  How can one remount a hotplugged NTFS external USB drive as noacl?  (I
>>> >  take it this is necessary to get sensible Windows permissions when using
>>> >  rsync for backup.  If not, please correct me.)
>> Change the /cygdrive entry in /etc/fstab
>> Then you'll get normal Windows permissions everywhere, except, perhaps, the
>> Cygwin root.

> Is this what you mean?

> none /cygdrive cygdrive binary,posix=0,user,noacl,override 0 0

No need for override. This is how I have it set (I prefer just /<drive_letter>
over /cygdrive/<...>):

none    /       cygdrive        binary,posix=0,noacl    0       0

> Is this a "good thing" to do?  I find the following advice from the FAQ 
> intimidating:

>   Therefore, the root directory evaluated by Cygwin itself is treated as 
> an immutable mount point and can't be overridden in /etc/fstab... unless 
> you think you really know what you're doing. In this case, use the 
> override flag in the options field in the /etc/fstab file. Since this is 
> a dangerous thing to do, do so at your own risk.

You're not remounting the Cygwin root. This paragraph does not apply here.
However, there's a section explicitly dealing with caveats of using cygdrive
prefix http://cygwin.com/cygwin-ug-net/using.html#cygdrive

> Will this affect my permission-dependent stuff like ssh authentication?

No, it won't and actually there's little possibility it could, assuming you
already have sane permissions on respective directories.
In case of SSH keys handling, it's smart enough to check possible issues
against real ACL's.


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 04.02.2014, <20:35>

Sorry for my terrible english...


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