delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/04/22:21:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RW,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 5 Jul 2011 12:21:03 +1000
Message-ID: <CAOa+a1bmvACR=4uefGJ8csCCrMMnZKNf+gMFmw0_dJ50a7jJ4A@mail.gmail.com>
Subject: cygwin permissions problem on a network drive
From: Bill Metzenthen <billm713 AT gmail DOT com>
To: cygwin AT cygwin DOT com
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p652LOCU028969

I have problems with permissions on a network drive.  The drive is
maintained by others and I have no control over the Windows
permissions of the drive.

I have a directory on the drive and I can use Windows Explorer to
create and write files and subdirectories to it.  I can also use the
Windows 'mkdir' and 'copy' commands to create directories and write
files on the drive.

Until recently I could do the same things from cygwin.  But that has changed...

If I cd in cygwin to a empty subdirectory I have created on the drive
then I find:

$ ls -la
total 0
drwx------+ 1 bmetzenthen Domain Users 0 Jul  4 11:51 .
drwx------+ 1 bmetzenthen Domain Users 0 Jul  4 11:52 ..

Where 'bmetzenthen' is me:

$ whoami
bmetzenthen

If I now try to use cygwin to create anything then it fails (despite
it reporting that I have rwx permissions for the directory):

$ mkdir test
mkdir: cannot create directory `test': Permission denied

Similarly for 'touch':

$ touch test
touch: cannot touch `test': Permission denied

If a subdirectory (or a file) is created by Windows Explorer then
'rmdir test' works.  Similarly 'touch test' and 'mv test test2'.

Windows Explorer reports that the subdirectories (but not files) are
read-only but silently fails to remove its read-only flag if I try
that.  It reports that I have all permissions but not 'Full Control'.

My cygwin installation is up to date and cygcheck -c reports all packages as OK.

What should I ask the system administrator to change so that cygwin
will once again work on this drive?  Perhaps there is some new setting
(or an old one which has somehow changed) for cygwin that I have
failed to notice?

Bill Metzenthen

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