Permissions get lost when moving files between drives.

FischRon.external@infineon.com FischRon.external@infineon.com
Fri Jan 16 07:44:00 GMT 2004


> On Thu, 15 Jan 2004, Dave Korn wrote:
> > > -----Original Message-----
> > > From: cygwin-owner@cygwin.com
> > > [mailto:cygwin-owner@cygwin.com] On Behalf Of Igor Pechtchanski
> >
> > > On Thu, 15 Jan 2004, Ronald Fischer wrote:
> > >
> > > > I'm using cygwin bash on a Windows 2000 machine. When I 
> perform the
> > > > following steps (c: is the local drive, h: is a network
> > > drive, which
> > > > is also my $HOME):
> > > >
> > > > cd c:/
> > > > echo xxx >h:/tmp/x
> > > > mv h:/tmp/x y
> > > >
> > > > then a
> > > >
> > > >   ls -l
> > > >
> > > > shows that c:/y has the permissions set to 000, though 
> h:/tmp/x has
> > > > them correct as 644.
> > > At a guess, your C: drive is a FAT (or, worse yet, FAT32)
> > > drive. 

No, it's NTFS

> > > The cygcheck output mentioned at the above link will
> > > show whether this is the case.

Which link?????

> > C) it's not always 000 that the perms get set to, for me it's 700
> 
> If the owner of the file on the samba share is not the same as your
> Windows login name, the attempt to preserve file permissions 
> might result
> in something like that.

Samba is not involved in my case

> 
> > D) it happens with cp but not with mv

You mean the other way around: Your example shows that the bug occurs with
mv, and not with cp.

> In any case, until we see the OP's cygcheck output, the 
> applicability of
> the above to his problem is all guesswork on both of our parts.

I did a cygcheck --sysinfo ... Here are the parts of the output which
I believe are relevant to this problem. If you need additional information,
please let me know:

====
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

C:\cygwin\bin\id.exe output (nontsec)
UID: 56297(fischron)  GID: 10513(mkgroup_l_d)
544(Administrators)   545(Users)
10513(mkgroup_l_d)

C:\cygwin\bin\id.exe output (ntsec)
UID: 56297(fischron)  GID: 10513(mkgroup_l_d)
544(Administrators)   545(Users)
10513(mkgroup_l_d)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `tty ntsec'
HOME = `h:\'
MAKE_MODE = `unix'
PWD = `/cygdrive/c'
USER = `user56297'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  NTFS   19085Mb  31% CP CS UN PA FC     MUCW0291
d:  cd           N/A    N/A                    
g:  net NTFS   1076795Mb  78% CP CS UN PA        eCRM
h:  net NTFS    1229Mb   7% CP CS UN PA        CIFS.HOMEDIR
m:  net MVFS    1000Mb  50% CP CS              CCase
s:  net NTFS   104178Mb  49% CP CS UN PA FC     Drive_E

C:\cygwin                          /                         user    binmode
C:\cygwin/bin                      /usr/bin                  user    binmode
C:\cygwin/lib                      /usr/lib                  user    binmode
.                                  /cygdrive                 user
binmode,cygdrive
C:\Documents and Settings          /home                     system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode

    Cygwin DLL version info:
        DLL version: 1.3.22
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 78
        Shared data: 3
        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: Tue Mar 18 09:20:11 EST 2003
        CVS tag: dontuse-21
        Shared id: cygwin1S3

Cygwin Package Information
Package                 Version
_update-info-dir        00167-1
a2ps                    4.12-1
ash                     20020731-1
base-files              1.3-1
base-passwd             1.1-1
bash                    2.05b-9
bzip2                   1.0.2-2
clear                   1.0-1
cygutils                1.1.3-1
cygwin                  1.3.22-1
cygwin-doc              1.3-4
diffutils               2.8.1-1
ed                      0.2-1
enscript                1.6.3-3
expat                   1.95.5-1
figlet                  2.2-1
fileutils               4.1-1
findutils               4.1.7-4
gawk                    3.1.2-2
gdbm                    1.8.3-1
gettext                 0.11.5-1
ghostscript-base        7.05-2
ghostscript-x11         7.05-2
grep                    2.5-1
groff                   1.18.1-2
guile-doc               1.6.0-1
gzip                    1.3.3-4
jpeg                    6b-7
less                    378-1
libbz2_1                1.0.2-2
libdb3.1                3.1.17-2
libgdbm                 1.8.0-5
libgdbm-devel           1.8.3-1
libgdbm3                1.8.3-1
libiconv2               1.8-2
libintl                 0.10.38-3
libintl1                0.10.40-1
libintl2                0.11.5-1
libkpathsea3            2.0.2-1
libncurses5             5.2-1
libncurses6             5.2-8
libncurses7             5.3-1
libpng12                1.2.5-1
libpopt0                1.6.4-4
libreadline4            4.1-2
libreadline5            4.3-2
libxerces-c23           2.3.0-1
libxml2                 2.4.23-1
libxslt                 1.0.13-1
lilypond-doc            1.6.8-2
login                   1.8-1
man                     1.5j-2
mc                      4.6.0-3
mktemp                  1.4-1
more                    2.11o-1
nano                    1.2.0-1
ncurses                 5.3-1
newlib-man              20020801
par                     1.52-1
pcre                    4.1-1
perl                    5.8.0-3
perl_manpages           5.8.0-3
pinfo                   0.6.6p1-1
readline                4.3-2
sed                     4.0.7-1
sh-utils                2.0.15-3
sharutils               4.2.1-2
tar                     1.13.25-1
termcap                 20020930-1
terminfo                5.3-2
tetex                   2.0.2-1
tetex-base              2.0.2-1
tetex-bin               2.0.2-1
tetex-doc               2.0.2-1
tetex-extra             2.0.2-1
tetex-tiny              2.0.2-1
tetex-x11               2.0.2-1
texinfo                 4.2-4
texmf                   20020911-1
texmf-base              20020911-1
texmf-doc               20020911-1
texmf-extra             20020911-1
texmf-tiny              20020911-1
textutils               2.0.21-1
tidy                    030201-1
tiff                    3.6.0-1
unzip                   5.50-2
which                   1.5-1
xerces-c                2.3.0-1
xerces-c-doc            2.3.0-1
XFree86-base            4.2.0-1
XFree86-bin             4.2.0-3
XFree86-etc             4.2.0-1
XFree86-fenc            4.2.0-2
XFree86-fnts            4.2.0-2
XFree86-lib             4.2.0-5
XFree86-startup-scripts 4.2.0-4
XFree86-xserv           4.2.0-42
zip                     2.3-2
zlib                    1.1.4-1

====

Ronald

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



More information about the Cygwin mailing list