This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permission Problems


> From: Dave Caswell 
> To: cygwin
           > Cc: 
> Date: 2016/4/25, Mon 09:29
> Subject: Permission Problems
> 
>T his is a followup to: https://cygwin.com/ml/cygwin/2016-03/msg00345.html
> 
> To recap, making three nested directories  on a non-C drive produces a
> third level which is unusable.
> 
> davec@MERCURYWIN ~/python
> $ rm -rf g1
> davec@MERCURYWIN ~/python
> $ mkdir g1 g1/g2 g1/g2/g3
> davec@MERCURYWIN ~/python
> $ ls -la g1 g1/g2 g1/g2/g3
> g1:
> total 12
> drwxrwxr-x+ 1 davec None 0 Mar 16 20:23 ./
> drwxrwx---+ 1 davec Users 0 Mar 16 20:23 ../
> drwsrwsr-t+ 1 davec None 0 Mar 16 20:23 g2/
> g1/g2:
> total 0
> drwsrwsr-t+ 1 davec None 0 Mar 16 20:23 ./
> drwxrwxr-x+ 1 davec None 0 Mar 16 20:23 ../
> d--Srws--T+ 1 davec None 0 Mar 16 20:23 g3/
> ls: cannot open directory 'g1/g2/g3': Permission denied
> 
> The problem went away with Cygwin 2.5.0-0.7 but is back with 2.5.1-1,
> and goes away when I downgrade back to 2.5.0-1
> 
> More info:  I tested on a couple of external drives and things worked
> properly there.   Can I have screwed up the permissions on my D drive
> so that cygwin gets confused but Windows still works?
> 
> thanks
> 
Perhaps workaround is to use the beloe
$ cygstart --action=runas (cygwin command) 

In your case,
$ cygstart --action=runas ls -la g1 g1/g2 g1/g2/g3
Tatsuro

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]