delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/27/12:28:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 27 Sep 2010 18:27:24 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.7(0.230/5/3) - Cannot change mode of file, and other permission issues on a Windows fileshare
Message-ID: <20100927162724.GA22760@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100921165156 DOT GD13235 AT calimero DOT vinschen DOT de> <AANLkTinJwrg330G0kEJRp5aL4Pdat6uyzqfsROFjANqL AT mail DOT gmail DOT com> <20100924092627 DOT GB6694 AT calimero DOT vinschen DOT de> <AANLkTikzf3WrnqHjoF28OPHRzWQzNHi-pfEtszbgjoSG AT mail DOT gmail DOT com> <20100924162826 DOT GA25401 AT calimero DOT vinschen DOT de> <AANLkTi=CY6wG6tY_cZ5JwTFyfN9fZodVnSq6ExWxd0bR AT mail DOT gmail DOT com> <20100924164115 DOT GA5793 AT calimero DOT vinschen DOT de> <AANLkTik98d3q9McBiBNm6Qb6n6hm-v=sqx4hNMSDLrF=@mail.gmail.com> <20100925185717 DOT GA16274 AT calimero DOT vinschen DOT de> <AANLkTiky9fhtzVEoine09NSCRy20+1_mcw0UBZhJqe7C AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <AANLkTiky9fhtzVEoine09NSCRy20+1_mcw0UBZhJqe7C@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 Sep 27 10:12, Keith Christian wrote:
> On Sat, Sep 25, 2010 at 12:57 PM, Corinna Vinschen> Nevertheless, are
> you really sure you tried the "noacl" mount option for
> > this share?  The "noacl" option results in trying to open the file a
> > second time, with just the READ_CONTROL and FILE_WRITE_ATTRIBUTES access
> > rights.  This should work in most cases.
> 
> Hi Corinna,
> 
> Here is the /etc/fstab file with a line to mount Z: with noacl.  The
> computer was shut down and rebooted twice.
> 
> The line as written below made no difference, still getting the same
> errors and failures when checking files into RCS on the network share.
>  I've moved the work directory to the local hard drive and RCS
> checkins and checkouts work fine.
> 
> Do I have the correct syntax for the Z: line below?
> 
> cat /etc/fstab
> # For a description of the file format, see the Users Guide
> # http://cygwin.com/cygwin-ug-net/using.html#mount-table
> 
> Z: /cygdrive/z ntfs binary posix=0 user noumount auto noacl 0 0

That doesn't work, for a couple of reasons.

- You can't override the /cygdrive path for a single drive.  The
  cygdrive prefix mount options will still rule.

- The mount options have to be separated by comma, not by space.

- If you read the doc under the aforementioned URL,m you'll notice that
  "noumount" is not a valid mount option.  It's just a fake option added
  by `mount' to show that a certain mount point can't be unmounted.  This
  affects only the cydrive paths so far.

What you have to do is to use some entirely different path, commas
to separate the mount options, and drop the noumount option, like this:

  Z: /my_z_drive dont_care binary,posix=0,user.noacl 0 0

Now you can access your drive via /my_z_drive.  You also don't have to
reboot.  It's sufficient to stop all Cygwin processes.

And for testing pourposes it's also sufficent to create just a
temporary user mount point using the mount(*) tool:

  $ mount -f -o binary,posix=0,user.noacl Z: /my_z_drive


Corinna

(*) http://cygwin.com/cygwin-ug-net/using-utils.html#mount


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