public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* LS and TAR don't see any file permissions ("ls -l" shows "----------+ ...")
@ 2011-03-04 18:12 Peter Binney
  2011-03-04 18:20 ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Binney @ 2011-03-04 18:12 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

When running "ls -l" the permissions field shows as "----------+".
Oddly, "ls -l" shows the correct permissions if the pathname uses the
windows drive letter syntax. eg:

$ pwd
/cygdrive/c
$ ls -l tmp/plb.txt
----------+ 1 ga2binn Domain Users 5527 Mar  3 13:54 tmp/plb.txt
$ ls -l c:/tmp/plb.txt
-rw-r--r-- 1 ga2binn Domain Users 5527 Mar  3 13:54 c:/tmp/plb.txt

Similarly, TAR images have no permissions on the files contained. eg:

$ pwd
/cygdrive/c/tmp
$ tar cf - plb.txt | tar vtf -
---------- ga2binn/Domain Users 5527 2011-03-03 13:54 plb.txt

Even more oddly, this behaviour (both LS and TAR) occurs on a new PC
that I am moving to. I have the same version of Cygwin on an older PC
which does not have the problem. I have diffed the "cygcheck -s -v -r"
output from both PC's and can see nothing that would explain the broken
behaviour on the new PC.
Both PC's are running the same version of XP SP3.

I have also reinstalled Cygwin with the latest version (its cygcheck
attached).

[-- Attachment #2: cygcheck-new.txt --]
[-- Type: text/plain, Size: 29261 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Fri Mar 04 14:27:50 2011

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Running in Terminal Service session

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\Perl\bin
	C:\SDKs\java\java.sun.com\jdk\jdk1.5.0_05\bin
	C:\Program Files\MKS\toolkit\mksnt
	C:\PROGRA~1\Sybase\ADO.NET\dll
	C:\PROGRA~1\Sybase\OLEDB
	C:\PROGRA~1\Sybase\ODBC
	C:\PROGRA~1\Sybase\OCS-12_5\lib3p
	C:\PROGRA~1\Sybase\OCS-12_5\dll
	C:\PROGRA~1\Sybase\OCS-12_5\bin
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\Program Files\NetManage\RUMBA\System
	C:\Program Files\NetManage\RUMBA
	C:\Program Files\KVS\EVClient
	C:\Program Files\Microsoft SQL Server\80\Tools\Binn
	C:\Program Files\Microsoft SQL Server\90\Tools\binn
	C:\Program Files\Microsoft SQL Server\90\DTS\Binn
	C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE
	C:\PLBlocal\utils
	C:\Program Files\Microsoft SQL Server\80\Tools\BINN
	C:\Program Files\Microsoft SQL Server\100\Tools\Binn
	C:\Program Files\Microsoft SQL Server\100\DTS\Binn
	C:\Program Files\TortoiseSVN\bin
	C:\Program Files\Vim\vim72

Output from C:\cygwin\bin\id.exe
UID: 866412(ga2binn)      GID: 10513(Domain Users)
10513(Domain Users)       0(root)                   544(Administrators)
555(Remote Desktop Users) 545(Users)                1004(Debugger Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'ga2binn'
PWD = '/cygdrive/c/tmp'
CYGWIN = 'nodosfilewarning'
HOME = '/cygdrive/c'

HOMEPATH = '\'
SiteName = 'UKLON2000'
APPDATA = 'H:\Apps\Profile\Application Data'
DNSDOMAIN = 'ztb.icb.commerzbank.com'
USEREXCHANGEPRFVAR = 'exchange.exchange.commerzbank.com'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man:'
Profile_VER = 'DEV'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 23 Stepping 10, GenuineIntel'
TERM = 'cygwin'
WINDIR = 'C:\WINDOWS'
FILNR = '16000'
MACHINEDOMAIN = 'ztb'
MTEMP = 'C:\WINDOWS\TEMP'
OLDPWD = '/cygdrive/c/PLBlocal'
ASDIR = 'C:\Program Files\Sybase_IQ\ASIQ-12_7'
USERDOMAIN = 'ZTB'
ALLUSERSPROFILE = 'C:\WINDOWS\Profiles\All Users'
OS = 'Windows_NT'
SCROOT = 'C:\Program Files\Sybase_IQ\Shared\Sybase Central 4.3'
NI_CurrentServer = 'SV078940.ztb.icb.commerzbank.com'
!:: = '::\'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
TEMP = '/cygdrive/c/WINDOWS/Profiles/ga2binn/LOCALS~1/Temp'
VS90COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\'
Computer_Attr = 'DesktopXP1.0'
SYBASE_OCS = 'OCS-12_5'
LIB = 'C:\PROGRA~1\Sybase\ADO.NET\dll;C:\PROGRA~1\Sybase\OCS-12_5\lib'
SYBROOT = 'C:\Program Files\Sybase_IQ'
SYBASE = 'C:\PROGRA~1\Sybase'
APPS = 'C:\Program Files'
USERNAME = 'ga2binn'
_JAVA_OPTIONS = '-Duser.home=H:\Apps\Profile\Java'
PROCESSOR_LEVEL = '6'
Location = 'UKLON2000'
MASCHINEDOMAIN = 'ZTB'
STANDORTDIR = 'S:'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PPNSite = 'DEFFM8001'
CLIENTNAME = 'IBLONCMW049775'
USERPROFILE = 'C:\WINDOWS\Profiles\ga2binn'
LANG = 'C.UTF-8'
LANAPPS = 'L:'
NISiteType = 'D'
NI_Server = 'SV078940'
LOGONSERVER = '\\SV077460'
PS1 = '$ '
Winsys = 'C:\WINDOWS\system32'
!C: = 'C:\PLBlocal'
ADSite = 'DEFFM8001'
PROCESSOR_ARCHITECTURE = 'x86'
HW_Typ = 'Workstationtyp_HP_Elite_8000'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
USERDNSDOMAIN = 'ZTB.ICB.COMMERZBANK.COM'
HOMEDRIVE = 'H:'
OSDSERVER = 'SV078940'
SYBASE_JRE = 'C:\PROGRA~1\Sybase\SHARED~1\JRE-1_3'
GGROUPDIR = 'F:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
FILIALDIR = 'S:'
PROMPT = '$P$G'
PNSite = 'DEFFM8001'
RENV = 'D'
SYSTEMROOT = 'C:\WINDOWS'
TMP = '/cygdrive/c/WINDOWS/Profiles/ga2binn/LOCALS~1/Temp'
PROCESSOR_REVISION = '170a'
STDLNG = '0409'
CVS_RSH = '/bin/ssh'
PRINTER = '\\SV077871\GS05BLUE23'
NISiteID = '2050'
Codeserver = 'SV078956'
GROUPDIR = 'G:'
VS100COMNTOOLS = 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\'
PROGRAMFILES = 'C:\Program Files'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
ConfigType = 'DESKTOP_XP'
HOMESHARE = '\\SV068115\GA2BINN$'
PADSite = 'DEFFM8001'
NUMBER_OF_PROCESSORS = '4'
NOAF = '1'
SESSIONNAME = 'RDP-Tcp#9'
!ExitCode = '00000000'
COMPUTERNAME = 'AP513436'
PReleaseServer = 'SV035670'
LocalSiteID = 'UKLON2000'
NTSERVER = '\\SV078940'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

a:  net NTFS    127715Mb  13% CP CS UN PA FC     Apps
b:  net NTFS     76316Mb  20% CP CS UN PA FC     
c:  hd  NTFS    220007Mb  16% CP CS UN PA FC     XP
d:  hd  NTFS     18457Mb  84% CP CS UN PA FC     SOURCE
e:  cd             N/A    N/A                    
g:  net NTFS    778240Mb  68% CP CS UN PA        data$
h:  net NTFS    260300Mb  94% CP CS UN PA        GA2BINN$
i:  net NTFS    790528Mb  37% CP CS UN PA        data$
j:  net NTFS    127715Mb  13% CP CS UN PA FC     Apps
n:  net NTFS     22410Mb   2% CP CS UN PA FC     
o:  net NTFS       500Mb  72% CP CS UN PA        home$
p:  net NTFS     11303Mb  25% CP CS UN PA FC     Data
q:  net NTFS    790528Mb  37% CP CS UN PA        data$
r:  net NTFS     10235Mb  90% CP CS UN PA FC     OS
s:  net NTFS   2129920Mb  36% CP CS UN PA        data$
w:  net NTFS     22410Mb   2% CP CS UN PA FC     LocalData
z:  hd  NTFS     14961Mb   1% CP CS UN PA FC     Additional data drive (local)

C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Found: C:\cygwin\bin\awk
Found: C:\cygwin\bin\awk
Found: C:\Program Files\MKS\toolkit\mksnt\awk.exe
Warning: C:\cygwin\bin\awk hides C:\Program Files\MKS\toolkit\mksnt\awk.exe
 -> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\Program Files\MKS\toolkit\mksnt\cat.exe
Warning: C:\cygwin\bin\cat.exe hides C:\Program Files\MKS\toolkit\mksnt\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\Program Files\MKS\toolkit\mksnt\cp.exe
Warning: C:\cygwin\bin\cp.exe hides C:\Program Files\MKS\toolkit\mksnt\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\find.exe
Found: C:\Program Files\MKS\toolkit\mksnt\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\Program Files\MKS\toolkit\mksnt\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\Program Files\MKS\toolkit\mksnt\grep.exe
Warning: C:\cygwin\bin\grep.exe hides C:\Program Files\MKS\toolkit\mksnt\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\Program Files\MKS\toolkit\mksnt\kill.exe
Warning: C:\cygwin\bin\kill.exe hides C:\Program Files\MKS\toolkit\mksnt\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\Program Files\MKS\toolkit\mksnt\ls.exe
Warning: C:\cygwin\bin\ls.exe hides C:\Program Files\MKS\toolkit\mksnt\ls.exe
Found: C:\Program Files\MKS\toolkit\mksnt\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\Program Files\MKS\toolkit\mksnt\mv.exe
Warning: C:\cygwin\bin\mv.exe hides C:\Program Files\MKS\toolkit\mksnt\mv.exe
Found: C:\Program Files\MKS\toolkit\mksnt\patch.exe
Found: C:\Perl\bin\perl.exe
Found: C:\Program Files\MKS\toolkit\mksnt\perl.exe
Warning: C:\Perl\bin\perl.exe hides C:\Program Files\MKS\toolkit\mksnt\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\Program Files\MKS\toolkit\mksnt\rm.exe
Warning: C:\cygwin\bin\rm.exe hides C:\Program Files\MKS\toolkit\mksnt\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\Program Files\MKS\toolkit\mksnt\sed.exe
Warning: C:\cygwin\bin\sed.exe hides C:\Program Files\MKS\toolkit\mksnt\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\Program Files\MKS\toolkit\mksnt\sh.exe
Warning: C:\cygwin\bin\sh.exe hides C:\Program Files\MKS\toolkit\mksnt\sh.exe
Found: C:\cygwin\usr\local\bin\tar
Found: C:\cygwin\bin\tar.exe
Warning: C:\cygwin\usr\local\bin\tar hides C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\tar.exe
Warning: C:\cygwin\usr\local\bin\tar hides C:\cygwin\bin\tar.exe
Found: C:\Program Files\MKS\toolkit\mksnt\tar.exe
Warning: C:\cygwin\usr\local\bin\tar hides C:\Program Files\MKS\toolkit\mksnt\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\test.exe
Found: C:\Program Files\MKS\toolkit\mksnt\test.exe
Warning: C:\cygwin\bin\test.exe hides C:\Program Files\MKS\toolkit\mksnt\test.exe
Found: C:\Program Files\MKS\toolkit\mksnt\vi.exe
Found: C:\Program Files\Vim\vim72\vim.exe

   15k 2009/12/27 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2009/11/18 12:52
   62k 2011/01/12 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/1/12 3:12
    7k 2003/10/19 C:\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
 1147k 2011/02/08 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2011/2/8 18:32
  284k 2010/06/01 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2010/6/1 20:07
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 13:12
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 13:12
   43k 2010/01/02 C:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 14:49
   40k 2009/03/01 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/3/1 6:32
   43k 2009/11/20 C:\cygwin\bin\cygform-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-9.dll" v0.0 ts=2009/11/20 19:14
   47k 2010/01/02 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 17:31
   45k 2010/08/15 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2010/8/14 23:57
  315k 2009/06/06 C:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2009/6/6 12:23
   24k 2009/06/23 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2009/6/23 13:20
   25k 2011/01/26 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2011/1/26 3:25
  360k 2010/08/15 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2010/8/15 23:45
  980k 2011/01/28 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/1/28 3:52
  193k 2010/05/16 C:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2010/5/16 14:37
   31k 2009/04/03 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2009/4/3 2:15
   39k 2008/09/07 C:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 13:28
  189k 2008/09/07 C:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 13:29
  201k 2008/09/07 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 13:31
    5k 2011/03/01 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2011/3/1 8:38
    9k 2011/03/01 C:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  125k 2010/04/09 C:\cygwin\bin\cyglzma-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-1.dll" v0.0 ts=2010/4/9 16:54
   25k 2010/01/02 C:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 14:48
   21k 2009/03/01 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/3/1 6:31
   25k 2009/11/20 C:\cygwin\bin\cygmenu-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-9.dll" v0.0 ts=2009/11/20 19:13
   25k 2010/01/02 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 17:30
   24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/30 23:53
  211k 2009/06/06 C:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2009/6/6 12:23
   63k 2010/01/02 C:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 15:00
   66k 2009/03/01 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/3/1 6:39
   63k 2009/11/20 C:\cygwin\bin\cygncurses++-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-9.dll" v0.0 ts=2009/11/20 19:25
   63k 2010/01/02 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 17:41
  195k 2010/01/02 C:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 14:45
  237k 2009/03/01 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/3/1 6:28
  198k 2009/11/20 C:\cygwin\bin\cygncurses-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-9.dll" v0.0 ts=2009/11/20 19:10
  244k 2010/01/02 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 17:28
   13k 2010/01/02 C:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 14:47
   11k 2009/03/01 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/3/1 6:30
   13k 2009/11/20 C:\cygwin\bin\cygpanel-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-9.dll" v0.0 ts=2009/11/20 19:12
   13k 2010/01/02 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 16:30
  224k 2010/06/15 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2010/6/15 5:10
   10k 2010/06/15 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2010/6/15 5:11
   22k 2002/06/09 C:\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 2009/06/23 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2009/6/23 13:20
  164k 2011/01/26 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2011/1/26 3:25
   84k 2010/07/02 C:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2010/7/2 4:19
   10k 2009/12/14 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2009/12/14 12:56
  121k 2010/06/01 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2010/6/1 19:44
  263k 2011/02/08 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2011/2/8 18:32
  773k 2010/08/15 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2010/8/15 0:33
   48k 2010/01/02 C:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 14:45
   48k 2009/11/20 C:\cygwin\bin\cygtic-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-9.dll" v0.0 ts=2009/11/20 19:10
   48k 2010/01/02 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 17:28
   40k 2009/07/08 C:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2009/7/8 9:35
   76k 2010/08/01 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2010/8/1 22:04
 2601k 2011/03/01 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2011/3/1 8:36
    Cygwin DLL version info:
        DLL version: 1.7.8
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 236
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        CVS tag: cygwin-1_7_8-release
        Shared id: cygwin1S5

   15k 2009/12/27 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2009/11/18 12:52
   62k 2011/01/12 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/1/12 3:12
    7k 2003/10/19 C:\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
 1147k 2011/02/08 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2011/2/8 18:32
  284k 2010/06/01 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2010/6/1 20:07
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 13:12
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 13:12
   43k 2010/01/02 C:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 14:49
   40k 2009/03/01 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/3/1 6:32
   43k 2009/11/20 C:\cygwin\bin\cygform-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-9.dll" v0.0 ts=2009/11/20 19:14
   47k 2010/01/02 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 17:31
   45k 2010/08/15 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2010/8/14 23:57
  315k 2009/06/06 C:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2009/6/6 12:23
   24k 2009/06/23 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2009/6/23 13:20
   25k 2011/01/26 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2011/1/26 3:25
  360k 2010/08/15 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2010/8/15 23:45
  980k 2011/01/28 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/1/28 3:52
  193k 2010/05/16 C:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2010/5/16 14:37
   31k 2009/04/03 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2009/4/3 2:15
   39k 2008/09/07 C:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 13:28
  189k 2008/09/07 C:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 13:29
  201k 2008/09/07 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 13:31
    5k 2011/03/01 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2011/3/1 8:38
    9k 2011/03/01 C:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  125k 2010/04/09 C:\cygwin\bin\cyglzma-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-1.dll" v0.0 ts=2010/4/9 16:54
   25k 2010/01/02 C:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 14:48
   21k 2009/03/01 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/3/1 6:31
   25k 2009/11/20 C:\cygwin\bin\cygmenu-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-9.dll" v0.0 ts=2009/11/20 19:13
   25k 2010/01/02 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 17:30
   24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/30 23:53
  211k 2009/06/06 C:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2009/6/6 12:23
   63k 2010/01/02 C:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 15:00
   66k 2009/03/01 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/3/1 6:39
   63k 2009/11/20 C:\cygwin\bin\cygncurses++-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-9.dll" v0.0 ts=2009/11/20 19:25
   63k 2010/01/02 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 17:41
  195k 2010/01/02 C:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 14:45
  237k 2009/03/01 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/3/1 6:28
  198k 2009/11/20 C:\cygwin\bin\cygncurses-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-9.dll" v0.0 ts=2009/11/20 19:10
  244k 2010/01/02 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 17:28
   13k 2010/01/02 C:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 14:47
   11k 2009/03/01 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/3/1 6:30
   13k 2009/11/20 C:\cygwin\bin\cygpanel-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-9.dll" v0.0 ts=2009/11/20 19:12
   13k 2010/01/02 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 16:30
  224k 2010/06/15 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2010/6/15 5:10
   10k 2010/06/15 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2010/6/15 5:11
   22k 2002/06/09 C:\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 2009/06/23 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2009/6/23 13:20
  164k 2011/01/26 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2011/1/26 3:25
   84k 2010/07/02 C:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2010/7/2 4:19
   10k 2009/12/14 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2009/12/14 12:56
  121k 2010/06/01 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2010/6/1 19:44
  263k 2011/02/08 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2011/2/8 18:32
  773k 2010/08/15 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2010/8/15 0:33
   48k 2010/01/02 C:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 14:45
   48k 2009/11/20 C:\cygwin\bin\cygtic-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-9.dll" v0.0 ts=2009/11/20 19:10
   48k 2010/01/02 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 17:28
   40k 2009/07/08 C:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2009/7/8 9:35
   76k 2010/08/01 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2010/8/1 22:04
 2601k 2011/03/01 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2011/3/1 8:36
    Cygwin DLL version info:
        DLL version: 1.7.8
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 236
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        CVS tag: cygwin-1_7_8-release
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: C:\DOWNLOADS\cygwin
Last downloaded files from: http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/

Package              Version             Status
_update-info-dir     00949-1             OK
alternatives         1.3.30c-10          OK
base-cygwin          3.0-1               OK
base-files           3.9-3               OK
bash                 4.1.10-4            OK
bzip2                1.0.6-1             OK
coreutils            8.10-1              OK
crypt                1.1-1               OK
cygutils             1.4.4-1             OK
cygwin               1.7.8-1             OK
cygwin-doc           1.7-1               OK
dash                 0.5.6.1-2           OK
diffutils            2.9-1               OK
editrights           1.01-2              OK
findutils            4.5.9-2             OK
gawk                 3.1.8-1             OK
gettext              0.17-11             OK
gnupg                1.4.9-2             OK
grep                 2.6.3-1             OK
groff                1.20.1-2            OK
gzip                 1.3.12-2            OK
ipc-utils            1.0-1               OK
less                 436-1               OK
libattr1             2.4.43-1            OK
libbz2_1             1.0.6-1             OK
libcurl4             7.20.1-1            OK
libdb4.5             4.5.20.2-2          OK
libgcc1              4.3.4-3             OK
libgmp3              4.3.1-3             OK
libiconv2            1.13.1-2            OK
libidn11             1.18-1              OK
libintl8             0.17-11             OK
liblzma1             4.999.9beta-11      OK
libncurses10         5.7-18              OK
libncurses8          5.5-10              OK
libncurses9          5.7-16              OK
libncursesw10        5.7-18              OK
libopenldap2_3_0     2.3.43-1            OK
libopenssl098        0.9.8r-1            OK
libpcre0             8.02-1              OK
libpopt0             1.6.4-4             OK
libreadline6         5.2.14-12           OK
libreadline7         6.1.2-2             OK
libsasl2             2.1.23-1            OK
libsigsegv2          2.8-1               OK
libssh2_1            1.2.5-1             OK
libstdc++6           4.3.4-3             OK
libusb-win32         0.1.12.2-1          OK
login                1.10-10             OK
man                  1.6f-1              OK
minires              1.02-1              OK
rebase               3.0.1-1             OK
run                  1.1.13-1            OK
sed                  4.2.1-1             OK
tar                  1.25-1              OK
terminfo             5.7_20091114-14     OK
terminfo0            5.5_20061104-12     OK
texinfo              4.13-3              OK
tzcode               2010j-1             OK
which                2.20-2              OK
xz                   4.999.9beta-11      OK
zlib                 1.2.5-1             OK
zlib-devel           1.2.5-1             OK
zlib0                1.2.5-1             OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: LS and TAR don't see any file permissions ("ls -l" shows "----------+ ...")
  2011-03-04 18:12 LS and TAR don't see any file permissions ("ls -l" shows "----------+ ...") Peter Binney
@ 2011-03-04 18:20 ` Eric Blake
  2011-03-16 19:19   ` LS and TAR don't see any file permissions ( Peter Binney
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Blake @ 2011-03-04 18:20 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1986 bytes --]

On 03/04/2011 11:12 AM, Peter Binney wrote:
> When running "ls -l" the permissions field shows as "----------+".

Which means that the owner has no permissions, but that there are ACLs
which allow others permissions.  Not entirely unusual, given Windows'
ability to create files with a different owner than the current user,
while allowing the current user to access the file (typically when done
to places like the desktop, and caused by inheritance ACLs present on
the directory where the problematic file is being created in the first
place).

> Oddly, "ls -l" shows the correct permissions if the pathname uses the
> windows drive letter syntax. eg:
> 
> $ pwd
> /cygdrive/c
> $ ls -l tmp/plb.txt
> ----------+ 1 ga2binn Domain Users 5527 Mar  3 13:54 tmp/plb.txt
> $ ls -l c:/tmp/plb.txt
> -rw-r--r-- 1 ga2binn Domain Users 5527 Mar  3 13:54 c:/tmp/plb.txt

That's because using a dos-style path disregards ACL parsing, and fakes
the permission bits instead.  The + shows that ACLs are present, and
'getfacl tmp/plb.txt' will show you the difference between the owner and
your permissions.


> Similarly, TAR images have no permissions on the files contained. eg:
> 
> $ pwd
> /cygdrive/c/tmp
> $ tar cf - plb.txt | tar vtf -
> ---------- ga2binn/Domain Users 5527 2011-03-03 13:54 plb.txt

Here, the problem is that tar doesn't preserve ACLs by default, so the
original POSIX mode (000) is preserved while the ACLs are lost,
resulting in an truly inaccessible file (note that there is no longer a
+ in the listing).

> 
> Even more oddly, this behaviour (both LS and TAR) occurs on a new PC
> that I am moving to.

That's another big case where the user ids on the old pc do not
correpsond to the user ids on the new pc; copying preserved the old user
id, but gave ACL access to the new user, resulting in odd permissions.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: LS and TAR don't see any file permissions (
  2011-03-04 18:20 ` Eric Blake
@ 2011-03-16 19:19   ` Peter Binney
  2011-03-26 13:08     ` Peter Binney
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Binney @ 2011-03-16 19:19 UTC (permalink / raw)
  To: cygwin

Eric Blake <eblake <at> redhat.com> writes:

> 
> On 03/04/2011 11:12 AM, Peter Binney wrote:
> > When running "ls -l" the permissions field shows as "----------+".
> 
> Which means that the owner has no permissions, but that there are ACLs
> which allow others permissions.  Not entirely unusual, given Windows'
> ability to create files with a different owner than the current user,
> while allowing the current user to access the file (typically when done
> to places like the desktop, and caused by inheritance ACLs present on
> the directory where the problematic file is being created in the first
> place).
> 
> > Oddly, "ls -l" shows the correct permissions if the pathname uses the
> > windows drive letter syntax. eg:
> > 
> > $ pwd
> > /cygdrive/c
> > $ ls -l tmp/plb.txt
> > ----------+ 1 ga2binn Domain Users 5527 Mar  3 13:54 tmp/plb.txt
> > $ ls -l c:/tmp/plb.txt
> > -rw-r--r-- 1 ga2binn Domain Users 5527 Mar  3 13:54 c:/tmp/plb.txt
> 
> That's because using a dos-style path disregards ACL parsing, and fakes
> the permission bits instead.  The + shows that ACLs are present, and
> 'getfacl tmp/plb.txt' will show you the difference between the owner and
> your permissions.
> 
> > Similarly, TAR images have no permissions on the files contained. eg:
> > 
> > $ pwd
> > /cygdrive/c/tmp
> > $ tar cf - plb.txt | tar vtf -
> > ---------- ga2binn/Domain Users 5527 2011-03-03 13:54 plb.txt
> 
> Here, the problem is that tar doesn't preserve ACLs by default, so the
> original POSIX mode (000) is preserved while the ACLs are lost,
> resulting in an truly inaccessible file (note that there is no longer a
> + in the listing).
> 
> > 
> > Even more oddly, this behaviour (both LS and TAR) occurs on a new PC
> > that I am moving to.
> 
> That's another big case where the user ids on the old pc do not
> correpsond to the user ids on the new pc; copying preserved the old user
> id, but gave ACL access to the new user, resulting in odd permissions.
> 

Many thanks indeed for that info, Eric.

I know it's not a Cygwin issue, but can you suggest an easy way to get
miserable Windows to copy files to a new machine in a way that does
give the current user ownership (ideally using some normal-ish Windows
commands)?

I tried using Windows Explorer copies and Winzip-ed .zip archives -
both end up with the problem below.

I have done this before when transferring PC's, but then I would have
been the same user on both, Here I am also moving to a different
domain\username on the new PC.

--
Peter




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: LS and TAR don't see any file permissions (
  2011-03-16 19:19   ` LS and TAR don't see any file permissions ( Peter Binney
@ 2011-03-26 13:08     ` Peter Binney
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Binney @ 2011-03-26 13:08 UTC (permalink / raw)
  To: cygwin

Have found my solution ... robocopy. Using it's /secfix option copied
files are owned by the copying user.

eg: robocopy  x:\tmp .\tmp /e /secfix

Note: you need a not-too-old version of Robocopy for the /secfix
support (I was using v 1.96).

On 16 March 2011 19:09, Peter Binney <Peter.Binney@gmail.com> wrote:
> Eric Blake <eblake <at> redhat.com> writes:
>
>>
>> On 03/04/2011 11:12 AM, Peter Binney wrote:
>> > When running "ls -l" the permissions field shows as "----------+".
>>
>> Which means that the owner has no permissions, but that there are ACLs
>> which allow others permissions.  Not entirely unusual, given Windows'
>> ability to create files with a different owner than the current user,
>> while allowing the current user to access the file (typically when done
>> to places like the desktop, and caused by inheritance ACLs present on
>> the directory where the problematic file is being created in the first
>> place).
>>
>> > Oddly, "ls -l" shows the correct permissions if the pathname uses the
>> > windows drive letter syntax. eg:
>> >
>> > $ pwd
>> > /cygdrive/c
>> > $ ls -l tmp/plb.txt
>> > ----------+ 1 ga2binn Domain Users 5527 Mar  3 13:54 tmp/plb.txt
>> > $ ls -l c:/tmp/plb.txt
>> > -rw-r--r-- 1 ga2binn Domain Users 5527 Mar  3 13:54 c:/tmp/plb.txt
>>
>> That's because using a dos-style path disregards ACL parsing, and fakes
>> the permission bits instead.  The + shows that ACLs are present, and
>> 'getfacl tmp/plb.txt' will show you the difference between the owner and
>> your permissions.
>>
>> > Similarly, TAR images have no permissions on the files contained. eg:
>> >
>> > $ pwd
>> > /cygdrive/c/tmp
>> > $ tar cf - plb.txt | tar vtf -
>> > ---------- ga2binn/Domain Users 5527 2011-03-03 13:54 plb.txt
>>
>> Here, the problem is that tar doesn't preserve ACLs by default, so the
>> original POSIX mode (000) is preserved while the ACLs are lost,
>> resulting in an truly inaccessible file (note that there is no longer a
>> + in the listing).
>>
>> >
>> > Even more oddly, this behaviour (both LS and TAR) occurs on a new PC
>> > that I am moving to.
>>
>> That's another big case where the user ids on the old pc do not
>> correpsond to the user ids on the new pc; copying preserved the old user
>> id, but gave ACL access to the new user, resulting in odd permissions.
>>
>
> Many thanks indeed for that info, Eric.
>
> I know it's not a Cygwin issue, but can you suggest an easy way to get
> miserable Windows to copy files to a new machine in a way that does
> give the current user ownership (ideally using some normal-ish Windows
> commands)?
>
> I tried using Windows Explorer copies and Winzip-ed .zip archives -
> both end up with the problem below.
>
> I have done this before when transferring PC's, but then I would have
> been the same user on both, Here I am also moving to a different
> domain\username on the new PC.
>
> --
> Peter
>
>
>
>
> --
> 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
>
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-26 12:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 18:12 LS and TAR don't see any file permissions ("ls -l" shows "----------+ ...") Peter Binney
2011-03-04 18:20 ` Eric Blake
2011-03-16 19:19   ` LS and TAR don't see any file permissions ( Peter Binney
2011-03-26 13:08     ` Peter Binney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).