delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/28/19:06:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
From: Mike Brennan <psuadm AT pittstate DOT edu>
Message-Id: <201111290006.pAT06SJQ2879534@mail.pittstate.edu>
Subject: /cygdrive/c permission denied
To: cygwin AT cygwin DOT com
Date: Mon, 28 Nov 2011 18:06:28 -0600 (CST)
MIME-Version: 1.0
X-IsSubscribed: yes
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

Hi,

Windows 7.  
uname -a gives: 
   CYGWIN_NT-6.1-WOW64 Dalea 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

Recently lost ability to do "ls" in directory /cygdrive/c.

   $ cd /cygdrive/c
   $ ls
   ls: reading directory .: Permission denied

This occurred while I was copying a directory (using cpio -p) to /cygdrive/c.
Not sure what went wrong; all was fine before.

When I did "cd /cygdrive; ls -l" I got:

drwx------+ 1 ???????? ???????? 0 Nov 28 17:03 c
drwx------+ 1 SYSTEM SYSTEM   0 Nov 28 16:23 d
drwx------+ 1 SYSTEM SYSTEM   0 Nov 28 16:23 e
drwx------+ 1 SYSTEM SYSTEM   0 Nov 28 16:59 f
drwxr-xr-x  1 psuadm None     0 Jan  1  1980 i

c, d, e, and f are volumes on the two local hard drives.  It is possible
that permissions on "c" were d---------+, not drwx------+; I started changing
things before doing a careful assessment of the initial state.

From the standpoint of Windows security, the owner of C: was (I believe)
TrustedInstaller.  Is that correct, or should it be SYSTEM?

Not sure how I caused this and, once I did, I discovered I don't know
how the heck to fix it.

Any help would be much appreciated.

-Mike


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