delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/08/10:09:53

X-Spam-Check-By: sourceware.org
Message-ID: <445F5103.2090104@mysql.com>
Date: Mon, 08 May 2006 16:09:07 +0200
From: Magnus Svensson <msvensson AT mysql DOT com>
User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, dave DOT korn AT artimi DOT com
Subject: Re: chmod works only for cygwin processes
References: <01b001c67299$a339ba30$a501a8c0 AT CAM DOT ARTIMI DOT COM>
In-Reply-To: <01b001c67299$a339ba30$a501a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Dave Korn wrote:
> On 04 May 2006 13:03, Magnus Svensson wrote:
> 
> 
> 
>># Now I pipe "dir test" to windows cmd.exe and it can read it.
> 
> 
> 
>   Can't reproduce.  What do you see as output if you run "getfacl testdir" and
> "cacls testdir" in the bash shell after the cmd.exe test shows it can be read?

This is how it looks like just after cmd.exe can read the dir. Also 
tried "chmod 0000", can still read the dir.

$> getfacl testdir
# file: testdir
# owner: mysqldev
# group: None
user::-wx
group::-wx
mask:rwx
other:-wx
default:user::rwx
default:group::rwx
default:other:rwx


Below is the "cacls testdir" output. My guess is that is the sshd_server 
account that in some way mess up the acl's?

If I look in the "Security properties" for the mysqldev directory(where 
I run the command from), there is only three users listed.
"CREATOR GROUP"           Special
"CREATOR OWNER"           Full control  Not inherited  Subfolders and 
files only
"mysqldev(WIN2003-x86)"   Full control  Not inherited  This folder only



$> cacls testdir
WIN2003-X86\sshd_server:(special access:)
 
STANDARD_RIGHTS_ALL 
         DELETE
READ_CONTROL
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
STANDARD_RIGHTS_REQUIRED
FILE_GENERIC_WRITE
FILE_GENERIC_EXECUTE
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_WRITE_EA
FILE_EXECUTE
FILE_DELETE_CHILD
FILE_READ_ATTRIBUTES
FILE_WRITE_ATTRIBUTES

WIN2003-X86\None:(special access:)
READ_CONTROL
SYNCHRONIZE
FILE_GENERIC_WRITE
FILE_GENERIC_EXECUTE
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_READ_EA
FILE_WRITE_EA
FILE_EXECUTE
FILE_DELETE_CHILD
FILE_READ_ATTRIBUTES
FILE_WRITE_ATTRIBUTES

Everyone:(special access:)
READ_CONTROL
SYNCHRONIZE
FILE_GENERIC_WRITE
FILE_GENERIC_EXECUTE
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_READ_EA
FILE_WRITE_EA
FILE_EXECUTE
FILE_DELETE_CHILD
FILE_READ_ATTRIBUTES
FILE_WRITE_ATTRIBUTES

CREATOR OWNER:(OI)(CI)(IO)F
CREATOR GROUP:(OI)(CI)(IO)(special access:) 
                                   READ_CONTROL
SYNCHRONIZE
FILE_GENERIC_READ 
         FILE_GENERIC_WRITE
FILE_GENERIC_EXECUTE
FILE_READ_DATA
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_READ_EA
FILE_WRITE_EA
FILE_EXECUTE
FILE_DELETE_CHILD 
         FILE_READ_ATTRIBUTES
FILE_WRITE_ATTRIBUTES

Everyone:(OI)(CI)(IO)(special access:)
READ_CONTROL
SYNCHRONIZE
FILE_GENERIC_READ
FILE_GENERIC_WRITE
FILE_GENERIC_EXECUTE
FILE_READ_DATA
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_READ_EA
FILE_WRITE_EA
FILE_EXECUTE
FILE_DELETE_CHILD
FILE_READ_ATTRIBUTES


> 
>   Also, please verify that you're running the expected versions of mkdir,
> chmod, ls, etc. using the 'which' command... it's just possible there's a
> non-cygwin version in your path.
> 

mysqldev AT win2003-x86:~> pwd
/home/mysqldev
mysqldev AT win2003-x86:~> which chmod
/usr/bin/chmod
mysqldev AT win2003-x86:~> which mkdir
/usr/bin/mkdir
mysqldev AT win2003-x86:~> which ls
/usr/bin/ls
mysqldev AT win2003-x86:~> which getfacl
/usr/bin/getfacl
mysqldev AT win2003-x86:~> which cacls
/cygdrive/c/WINDOWS/system32/cacls


-- 
Magnus Svensson, Software Engineer
MySQL AB, www.mysql.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019