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.


[EMAIL PROTECTED]:~> pwd
/home/mysqldev
[EMAIL PROTECTED]:~> which chmod
/usr/bin/chmod
[EMAIL PROTECTED]:~> which mkdir
/usr/bin/mkdir
[EMAIL PROTECTED]:~> which ls
/usr/bin/ls
[EMAIL PROTECTED]:~> which getfacl
/usr/bin/getfacl
[EMAIL PROTECTED]:~> 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/

Reply via email to