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: Problems with file permissions and cp when running on Vista


Two issues as I see it.
Firstly, cygwin doesn't appear to pick up that I have write access to the file README.txt. The getacl output below doesn't list Authenticated Users. I can't use vi to modify the file, but I can read the file using cat and so on.


Secondly, cp takes a source file that I can read and copies it to a target file that I subsequently can't read. This seems inconsistent. Clearly cygwin is taking notice of the access control list as well as the posix permissions when doing something like cat, as the README.txt file has no posix permissions, but I can cat it. However cp doesn't copy that access control list information so the target file only gets a copy of the posix permissions.



The file e:\wps2\dev5\README.txt has windows permissions:
Authenticated Users: modify, Read & execute, Read, Write
System : Full control, Modify, Read & execute, Read, Write
Administrators : Full control, Modify, Read & execute, Read, Write
Users : Read & execute, Read



$ type -a cat vi chmod
cat is /usr/bin/cat
cat is /bin/cat
vi is /usr/bin/vi
vi is /bin/vi
chmod is /usr/bin/chmod
chmod is /bin/chmod

Tom@Victor /cygdrive/e/wps2/dev5
$ getfacl README.txt
# file: README.txt
# owner: Tom
# group: None
user::---
group::---
group:SYSTEM:rwx
group:Administrators:rwx
group:Users:r-x
mask:rwx
other:---

Tom@Victor /cygdrive/e/wps2/dev5
$ cp README.txt README1.txt

Tom@Victor /cygdrive/e/wps2/dev5
$ getfacl README1.txt
# file: README1.txt
# owner: Tom
# group: None
user::---
group::---
mask:rwx
other:---

Tom@Victor /cygdrive/e/wps2/dev5
$


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Cygwin Configuration Diagnostics
Current System Time: Tue Jul 29 08:02:52 2008

Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6001 Service Pack 1

Path:	C:\programfiles\cygwin\usr\local\bin
	C:\programfiles\cygwin\bin
	C:\programfiles\cygwin\bin
	C:\programfiles\cygwin\usr\X11R6\bin
	c:\Windows\system32
	c:\Windows
	c:\Windows\System32\Wbem
	c:\Program Files\QuickTime\QTSystem\
	c:\Program Files\Visual Leak Detector\bin
	c:\Program Files\Rational\common
	c:\Program Files\TortoiseSVN\bin
	c:\Program Files\Subversion

Output from C:\programfiles\cygwin\bin\id.exe (nontsec)
UID: 1000(Tom)      GID: 513(None)
513(None)           544(Administrators) 545(Users)

Output from C:\programfiles\cygwin\bin\id.exe (ntsec)
UID: 1000(Tom)      GID: 513(None)
513(None)           544(Administrators) 545(Users)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'Tom'
PWD = '/cygdrive/e/wps2/trunk'
HOME = '/home/Tom'
MAKE_MODE = 'unix'

HOMEPATH = '\Users\Tom'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\Tom\AppData\Roaming'
HOSTNAME = 'Victor'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 7, GenuineIntel'
WINDIR = 'C:\Windows'
VS80COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/Tom'
PROGRAMDATA = 'C:\ProgramData'
USERDOMAIN = 'Victor'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
ANT_HOME = 'C:\Program Files\apache-ant-1.7.0'
!:: = '::\'
TEMP = '/cygdrive/c/Users/Tom/AppData/Local/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
QTJAVA = 'C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip'
USERNAME = 'Tom'
NANT_HOME = 'C:\Program Files\nant-0.85'
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
JAVA_HOME = 'C:\Program Files\Java\jdk1.6.0_03'
USERPROFILE = 'C:\Users\Tom'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\VICTOR'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\Tom\AppData\Local'
!C: = 'C:\programfiles\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\Windows\system32\cmd.exe'
TMP = '/cygdrive/c/Users/Tom/AppData/Local/Temp'
SYSTEMROOT = 'C:\Windows'
PRINTER = 'EPSON Stylus Photo R285 Series'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '0f07'
CLASSPATH = '.;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
COMPUTERNAME = 'VICTOR'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\programfiles\cygwin'
  flags = 0x0000000a
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\programfiles\cygwin/bin'
  flags = 0x0000000a
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\programfiles\cygwin/lib'
  flags = 0x0000000a
HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\programfiles\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\programfiles\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\programfiles\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS    143086Mb  49% CP CS UN PA FC     
d:  hd  NTFS     18928Mb   3% CP CS UN PA FC     New Volume
e:  hd  NTFS     74999Mb  65% CP CS UN PA FC     New Volume
g:  cd             N/A    N/A                    

C:\programfiles\cygwin      /          system  binmode
C:\programfiles\cygwin/bin  /usr/bin   system  binmode
C:\programfiles\cygwin/lib  /usr/lib   system  binmode
.                           /cygdrive  system  binmode,cygdrive

Found: C:\programfiles\cygwin\bin\awk.exe
Found: C:\programfiles\cygwin\bin\bash.exe
Found: C:\programfiles\cygwin\bin\cat.exe
Found: C:\programfiles\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\programfiles\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\programfiles\cygwin\bin\grep.exe
Found: C:\programfiles\cygwin\bin\kill.exe
Not Found: ld
Found: C:\programfiles\cygwin\bin\ls.exe
Found: C:\programfiles\cygwin\bin\make.exe
Found: C:\programfiles\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\programfiles\cygwin\bin\rm.exe
Found: C:\programfiles\cygwin\bin\sed.exe
Found: C:\programfiles\cygwin\bin\ssh.exe
Found: C:\programfiles\cygwin\bin\sh.exe
Found: C:\programfiles\cygwin\bin\tar.exe
Found: C:\programfiles\cygwin\bin\test.exe
Not Found: vi
Found: C:\programfiles\cygwin\bin\vim.exe

   61k 2008/04/01 C:\programfiles\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/4/1 4:37
    7k 2003/10/19 C:\programfiles\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 8:57
 1057k 2008/06/09 C:\programfiles\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2008/6/9 17:33
   40k 2006/11/15 C:\programfiles\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/15 7:06
   25k 2008/01/04 C:\programfiles\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/1/4 3:31
  271k 2007/08/24 C:\programfiles\cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 8:24
  976k 2006/10/22 C:\programfiles\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2006/10/23 0:44
   37k 2003/08/10 C:\programfiles\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 22:50
   31k 2005/11/20 C:\programfiles\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 2:04
   31k 2006/10/23 C:\programfiles\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2006/10/23 1:12
   21k 2006/11/15 C:\programfiles\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/15 7:05
   20k 2006/12/21 C:\programfiles\cygwin\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0
                  "cygminires.dll" v0.0 ts=2006/12/21 5:07
   67k 2006/11/15 C:\programfiles\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/15 7:13
  237k 2006/11/15 C:\programfiles\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/15 7:02
   12k 2006/11/15 C:\programfiles\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/15 7:04
  150k 2008/04/25 C:\programfiles\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/4/25 1:30
  303k 2008/04/25 C:\programfiles\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/4/25 1:30
    7k 2008/04/25 C:\programfiles\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/4/25 1:30
   22k 2002/06/09 C:\programfiles\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 6:45
  155k 2008/01/04 C:\programfiles\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/1/4 3:31
  219k 2008/06/09 C:\programfiles\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2008/6/9 17:33
   22k 2008/02/24 C:\programfiles\cygwin\bin\cygwrap-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwrap-0.dll" v0.0 ts=2008/2/23 7:03
   65k 2006/10/16 C:\programfiles\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/16 2:10
 1829k 2008/06/12 C:\programfiles\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/6/12 18:35
    Cygwin DLL version info:
        DLL version: 1.5.25
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Jun 12 19:34:46 CEST 2008
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: C:\Users\Tom\Downloads\cygwin
Last downloaded files from: ftp://ftp.planetmirror.com/pub/sourceware/cygwin

Package              Version
_update-info-dir     00743-1
alternatives         1.3.30c-2
ash                  20040127-3
base-files           3.7-1
base-passwd          2.2-1
bash                 3.2.39-19
bison                2.3-1
bzip2                1.0.5-2
coreutils            6.10-1
crypt                1.1-1
csih                 0.1.5-1
cygrunsrv            1.34-1
cygutils             1.3.2-1
cygwin               1.5.25-15
cygwin-doc           1.4-4
editrights           1.01-2
findutils            4.4.0-1
flex                 2.5.35-1
gawk                 3.1.6-1
grep                 2.5.1a-4
groff                1.18.1-2
gzip                 1.3.12-2
hexedit              1.2.12-1
less                 382-1
libbz2_1             1.0.5-2
libiconv2            1.11-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libintl8             0.15-1
libncurses8          5.5-3
libpcre0             7.6-2
libpopt0             1.6.4-4
libreadline6         5.2.12-10
libwrap0             7.6-4
login                1.9-8
m4                   1.4.10b-2
make                 3.81-2
man                  1.6e-1
minires              1.01-1
mktemp               1.5-4
openssh              5.1p1-3
openssl              0.9.8h-1
rebase               2.4.4-1
run                  1.1.10-1
sed                  4.1.5-2
tar                  1.20-1
termcap              20050421-1
terminfo             5.5_20061104-1
texinfo              4.8a-1
tzcode               2008a-1
unzip                5.52-2
vim                  7.1-1
which                2.19-1
zip                  2.32-2
zlib                 1.2.3-2
Use -h to see help about each section
--
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/

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