public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bug in cp: Permission denied
@ 1998-11-02 10:01 John Wiersba
  0 siblings, 0 replies; 13+ messages in thread
From: John Wiersba @ 1998-11-02 10:01 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

What's up with this?

touch a
cp -p a b
cp: b: Permission denied

The copy actually works, and the timestamp is copied, but not the
permissions. 

I'm running b19 with coolview on NT with everything binary-mounted.

John Wiersba (john.wiersba@medstat.com)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: bug in cp: Permission denied
  1998-11-07  0:01 John Wiersba
@ 1998-11-08 23:11 ` Michael Hirmke
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Hirmke @ 1998-11-08 23:11 UTC (permalink / raw)
  To: gnu-win32

Hi John,

[...]
>> Can anyone reproduce this on a WinNT4 machine under b19 (or maybe
>under b20)?
>>
>> $ touch 10101010 asdf
>> $ chmod 444 asdf
>> $ cp asdf fdsa1
>> $ cp -p asdf fdsa2
>> cp: fdsa2: Permission denied
>> $ ls -l
>> total 0
>> -r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
>> -r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
>> -rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2

 $ touch 10101010 asdf
 $ chmod 444 asdf
 $ ls -l asdf
-r--r--r--   1 544      everyone        0 Oct 10 10:10 asdf
 $ cp asdf fdsa1
 $ cp -p asdf fdsa2
 $ ls -l asdf fdsa1 fdsa2
-r--r--r--   1 544      everyone        0 Oct 10 10:10 asdf
-r--r--r--   1 544      everyone        0 Nov  8 17:32 fdsa1
-r--r--r--   1 544      everyone        0 Oct 10 10:10 fdsa2

[...]
>> I'm running b19 with coolview under WinNT, I don't know which service
>pack, but the System

NT 4 Server German SP3
Cygwin B20.

[...]
>John Wiersba (john.wiersba@medstat.com)

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-07  7:00 John Wiersba
  0 siblings, 0 replies; 13+ messages in thread
From: John Wiersba @ 1998-11-07  7:00 UTC (permalink / raw)
  To: 'Larry Hall', 'gnu-win32@cygnus.com'

I don't have ntea set, but I'm not using NTFS either (I'm using FAT).
However, when I set ntea, I get even stranger results:

/junk> touch 10101010 a1 a2
/junk> chmod 444 a2
/junk> /bin/cp a1 b1
/junk> /bin/cp a2 b2
/junk> /bin/cp -p a1 c1
/bin/cp: c1: Permission denied
/junk> /bin/cp -p a2 c2
/bin/cp: c2: Permission denied
/junk> ls -l
total 0
-rw-rw-r--   1 jrw      jrwg            0 Oct 10 10:10 a1
-r--r--r--   1 jrw      jrwg            0 Nov  5 16:45 a2    <== why did
this date change?
-rw-rw-r--   1 jrw      jrwg            0 Nov  5 16:45 b1
-r--r--r--   1 jrw      jrwg            0 Nov  5 16:45 b2
-rw-------   1 jrw      jrwg            0 Oct 10 10:10 c1    <== what
happened to the mode?
-rw-------   1 jrw      jrwg            0 Nov  5 16:45 c2    <== what
happened to the mode?

John Wiersba (john.wiersba@medstat.com)

-----Original Message-----
From: Larry Hall [ mailto:lhall@rfk.com ]
Sent: Thursday, November 05, 1998 4:37 PM
To: John Wiersba; 'gnu-win32@cygnus.com'
Subject: RE: bug in cp: Permission denied


I get closer to what you get here (although not exactly what you get) if
I
don't set "ntea" in CYGWIN32.  Any chance that you don't have this set?

Larry

At 04:16 PM 11/5/98 -0500, John Wiersba wrote:
>Now, I'm even more confused about cp.exe (see output below).  Can
anyone
>explain what's going on?
>
>Second question: how do I tell what service pack I'm using?  The System
>Properties shows 4.00.1381 and uname -a shows "CYGWIN32_NT machinename
>4.0 19.3 i686 unknown"
>
>/usr/junk> umask
>002
>/usr/junk> ls -l
>total 0
>/usr/junk> touch 10101010 a1 a2
>/usr/junk> chmod 444 a2
>/usr/junk> /bin/cp a1 b1
>/usr/junk> /bin/cp a2 b2
>/usr/junk> /bin/cp -p a1 c1
>/bin/cp: c1: Permission denied                             <== can't
set
>file access mode?
>/usr/junk> /bin/cp -p a2 c2
>/bin/cp: c2: Permission denied                             <== can't
set
>file access mode?
>/usr/junk> ls -l
>total 0
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 a1
>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 a2
>-rw-r--r--   1 jrw      jrwg            0 Nov  5 16:05 b1  <== ok
>-r--r--r--   1 jrw      jrwg            0 Nov  5 16:05 b2  <==
shouldn't
>this be 644 mode?
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c1  <== this is
>ok, so why the complaint?
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c2  <== this
>should be 444 mode!
>
>John Wiersba (john.wiersba@medstat.com)
>
>-----Original Message-----
>From: Larry Hall [ mailto:lhall@rfk.com ]
>Sent: Thursday, November 05, 1998 3:51 PM
>To: John Wiersba; 'gnu-win32@cygnus.com'
>Subject: RE: bug in cp: Permission denied
>
>
>I get this with NT 4+SP4 and b19:
>
>HOME_lhall->touch 10101010 asdf
>HOME_lhall->chmod 444 asdf
>HOME_lhall->cp asdf fdsa1
>HOME_lhall->cp -p asdf fdsa2
>HOME_lhall->ls -lrt
>total 0
>-r--r--r--   1 544      None            0 Oct 10 10:10 asdf
>-r--r--r--   1 lhall    None            0 Oct 10 10:10 fdsa2
>-r--r--r--   1 544      None            0 Nov  5 15:46 fdsa1
>HOME_lhall->
>
>The only difference is touch seems to use the "default" group I'm in
>(Administrators) rather than my user id like yours does.  This seems
>to point to a permissions problem (although I'm not sure I understand
>the behavior of touch either).
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      (781) 239-1053
>8 Grove Street                          (781) 239-1655 - FAX
>Wellesley, MA  02482-7797               http://www.rfk.com
>
>
>At 11:11 AM 11/4/98 -0500, John Wiersba wrote:
>>Can anyone reproduce this on a WinNT4 machine under b19 (or maybe
under
>>b20)?
>>
>>$ touch 10101010 asdf
>>$ chmod 444 asdf
>>$ cp asdf fdsa1
>>$ cp -p asdf fdsa2
>>cp: fdsa2: Permission denied
>>$ ls -l
>>total 0
>>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
>>-r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
>>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
>>
>>Note that the -p option correctly copies the timestamp, but that the
>>file access mode is NOT
>>copied (I assume that's why there's an error message).  
>>
>>Why can't the file access mode be copied?
>>
>>I'm running b19 with coolview under WinNT, I don't know which service
>>pack, but the System Properties shows 4.00.1381.
>>
>>-----Original Message-----
>>From: John Wiersba [ mailto:John.Wiersba@medstat.com ]
>>Sent: Monday, November 02, 1998 11:25 AM
>>To: 'gnu-win32@cygnus.com'
>>Subject: bug in cp: Permission denied
>>
>>
>>What's up with this?
>>
>>touch a
>>cp -p a b
>>cp: b: Permission denied
>>
>>The copy actually works, and the timestamp is copied, but not the
>>permissions. 
>>
>>I'm running b19 with coolview on NT with everything binary-mounted.
>>
>>John Wiersba (john.wiersba@medstat.com)
>>-
>>For help on using this list (especially unsubscribing), send a message
>>to
>>"gnu-win32-request@cygnus.com" with one line of text: "help".
>>-
>>For help on using this list (especially unsubscribing), send a message
>to
>>"gnu-win32-request@cygnus.com" with one line of text: "help".
>>
>>
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-07  7:00 John Wiersba
  1998-11-07  7:00 ` Larry Hall
  0 siblings, 1 reply; 13+ messages in thread
From: John Wiersba @ 1998-11-07  7:00 UTC (permalink / raw)
  To: 'Larry Hall', 'gnu-win32@cygnus.com'

Now, I'm even more confused about cp.exe (see output below).  Can anyone
explain what's going on?

Second question: how do I tell what service pack I'm using?  The System
Properties shows 4.00.1381 and uname -a shows "CYGWIN32_NT machinename
4.0 19.3 i686 unknown"

/usr/junk> umask
002
/usr/junk> ls -l
total 0
/usr/junk> touch 10101010 a1 a2
/usr/junk> chmod 444 a2
/usr/junk> /bin/cp a1 b1
/usr/junk> /bin/cp a2 b2
/usr/junk> /bin/cp -p a1 c1
/bin/cp: c1: Permission denied                             <== can't set
file access mode?
/usr/junk> /bin/cp -p a2 c2
/bin/cp: c2: Permission denied                             <== can't set
file access mode?
/usr/junk> ls -l
total 0
-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 a1
-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 a2
-rw-r--r--   1 jrw      jrwg            0 Nov  5 16:05 b1  <== ok
-r--r--r--   1 jrw      jrwg            0 Nov  5 16:05 b2  <== shouldn't
this be 644 mode?
-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c1  <== this is
ok, so why the complaint?
-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c2  <== this
should be 444 mode!

John Wiersba (john.wiersba@medstat.com)

-----Original Message-----
From: Larry Hall [ mailto:lhall@rfk.com ]
Sent: Thursday, November 05, 1998 3:51 PM
To: John Wiersba; 'gnu-win32@cygnus.com'
Subject: RE: bug in cp: Permission denied


I get this with NT 4+SP4 and b19:

HOME_lhall->touch 10101010 asdf
HOME_lhall->chmod 444 asdf
HOME_lhall->cp asdf fdsa1
HOME_lhall->cp -p asdf fdsa2
HOME_lhall->ls -lrt
total 0
-r--r--r--   1 544      None            0 Oct 10 10:10 asdf
-r--r--r--   1 lhall    None            0 Oct 10 10:10 fdsa2
-r--r--r--   1 544      None            0 Nov  5 15:46 fdsa1
HOME_lhall->

The only difference is touch seems to use the "default" group I'm in
(Administrators) rather than my user id like yours does.  This seems
to point to a permissions problem (although I'm not sure I understand
the behavior of touch either).

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797               http://www.rfk.com


At 11:11 AM 11/4/98 -0500, John Wiersba wrote:
>Can anyone reproduce this on a WinNT4 machine under b19 (or maybe under
>b20)?
>
>$ touch 10101010 asdf
>$ chmod 444 asdf
>$ cp asdf fdsa1
>$ cp -p asdf fdsa2
>cp: fdsa2: Permission denied
>$ ls -l
>total 0
>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
>-r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
>
>Note that the -p option correctly copies the timestamp, but that the
>file access mode is NOT
>copied (I assume that's why there's an error message).  
>
>Why can't the file access mode be copied?
>
>I'm running b19 with coolview under WinNT, I don't know which service
>pack, but the System Properties shows 4.00.1381.
>
>-----Original Message-----
>From: John Wiersba [ mailto:John.Wiersba@medstat.com ]
>Sent: Monday, November 02, 1998 11:25 AM
>To: 'gnu-win32@cygnus.com'
>Subject: bug in cp: Permission denied
>
>
>What's up with this?
>
>touch a
>cp -p a b
>cp: b: Permission denied
>
>The copy actually works, and the timestamp is copied, but not the
>permissions. 
>
>I'm running b19 with coolview on NT with everything binary-mounted.
>
>John Wiersba (john.wiersba@medstat.com)
>-
>For help on using this list (especially unsubscribing), send a message
>to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>-
>For help on using this list (especially unsubscribing), send a message
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
  1998-11-07  7:00 John Wiersba
@ 1998-11-07  7:00 ` Larry Hall
  0 siblings, 0 replies; 13+ messages in thread
From: Larry Hall @ 1998-11-07  7:00 UTC (permalink / raw)
  To: John Wiersba, 'gnu-win32@cygnus.com'

I get closer to what you get here (although not exactly what you get) if I
don't set "ntea" in CYGWIN32.  Any chance that you don't have this set?

Larry

At 04:16 PM 11/5/98 -0500, John Wiersba wrote:
>Now, I'm even more confused about cp.exe (see output below).  Can anyone
>explain what's going on?
>
>Second question: how do I tell what service pack I'm using?  The System
>Properties shows 4.00.1381 and uname -a shows "CYGWIN32_NT machinename
>4.0 19.3 i686 unknown"
>
>/usr/junk> umask
>002
>/usr/junk> ls -l
>total 0
>/usr/junk> touch 10101010 a1 a2
>/usr/junk> chmod 444 a2
>/usr/junk> /bin/cp a1 b1
>/usr/junk> /bin/cp a2 b2
>/usr/junk> /bin/cp -p a1 c1
>/bin/cp: c1: Permission denied                             <== can't set
>file access mode?
>/usr/junk> /bin/cp -p a2 c2
>/bin/cp: c2: Permission denied                             <== can't set
>file access mode?
>/usr/junk> ls -l
>total 0
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 a1
>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 a2
>-rw-r--r--   1 jrw      jrwg            0 Nov  5 16:05 b1  <== ok
>-r--r--r--   1 jrw      jrwg            0 Nov  5 16:05 b2  <== shouldn't
>this be 644 mode?
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c1  <== this is
>ok, so why the complaint?
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 c2  <== this
>should be 444 mode!
>
>John Wiersba (john.wiersba@medstat.com)
>
>-----Original Message-----
>From: Larry Hall [ mailto:lhall@rfk.com ]
>Sent: Thursday, November 05, 1998 3:51 PM
>To: John Wiersba; 'gnu-win32@cygnus.com'
>Subject: RE: bug in cp: Permission denied
>
>
>I get this with NT 4+SP4 and b19:
>
>HOME_lhall->touch 10101010 asdf
>HOME_lhall->chmod 444 asdf
>HOME_lhall->cp asdf fdsa1
>HOME_lhall->cp -p asdf fdsa2
>HOME_lhall->ls -lrt
>total 0
>-r--r--r--   1 544      None            0 Oct 10 10:10 asdf
>-r--r--r--   1 lhall    None            0 Oct 10 10:10 fdsa2
>-r--r--r--   1 544      None            0 Nov  5 15:46 fdsa1
>HOME_lhall->
>
>The only difference is touch seems to use the "default" group I'm in
>(Administrators) rather than my user id like yours does.  This seems
>to point to a permissions problem (although I'm not sure I understand
>the behavior of touch either).
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      (781) 239-1053
>8 Grove Street                          (781) 239-1655 - FAX
>Wellesley, MA  02482-7797               http://www.rfk.com
>
>
>At 11:11 AM 11/4/98 -0500, John Wiersba wrote:
>>Can anyone reproduce this on a WinNT4 machine under b19 (or maybe under
>>b20)?
>>
>>$ touch 10101010 asdf
>>$ chmod 444 asdf
>>$ cp asdf fdsa1
>>$ cp -p asdf fdsa2
>>cp: fdsa2: Permission denied
>>$ ls -l
>>total 0
>>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
>>-r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
>>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
>>
>>Note that the -p option correctly copies the timestamp, but that the
>>file access mode is NOT
>>copied (I assume that's why there's an error message).  
>>
>>Why can't the file access mode be copied?
>>
>>I'm running b19 with coolview under WinNT, I don't know which service
>>pack, but the System Properties shows 4.00.1381.
>>
>>-----Original Message-----
>>From: John Wiersba [ mailto:John.Wiersba@medstat.com ]
>>Sent: Monday, November 02, 1998 11:25 AM
>>To: 'gnu-win32@cygnus.com'
>>Subject: bug in cp: Permission denied
>>
>>
>>What's up with this?
>>
>>touch a
>>cp -p a b
>>cp: b: Permission denied
>>
>>The copy actually works, and the timestamp is copied, but not the
>>permissions. 
>>
>>I'm running b19 with coolview on NT with everything binary-mounted.
>>
>>John Wiersba (john.wiersba@medstat.com)
>>-
>>For help on using this list (especially unsubscribing), send a message
>>to
>>"gnu-win32-request@cygnus.com" with one line of text: "help".
>>-
>>For help on using this list (especially unsubscribing), send a message
>to
>>"gnu-win32-request@cygnus.com" with one line of text: "help".
>>
>>
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
  1998-11-04 11:39 John Wiersba
@ 1998-11-07  3:05 ` Larry Hall
  0 siblings, 0 replies; 13+ messages in thread
From: Larry Hall @ 1998-11-07  3:05 UTC (permalink / raw)
  To: John Wiersba, 'gnu-win32@cygnus.com'

I get this with NT 4+SP4 and b19:

HOME_lhall->touch 10101010 asdf
HOME_lhall->chmod 444 asdf
HOME_lhall->cp asdf fdsa1
HOME_lhall->cp -p asdf fdsa2
HOME_lhall->ls -lrt
total 0
-r--r--r--   1 544      None            0 Oct 10 10:10 asdf
-r--r--r--   1 lhall    None            0 Oct 10 10:10 fdsa2
-r--r--r--   1 544      None            0 Nov  5 15:46 fdsa1
HOME_lhall->

The only difference is touch seems to use the "default" group I'm in
(Administrators) rather than my user id like yours does.  This seems
to point to a permissions problem (although I'm not sure I understand
the behavior of touch either).

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797               http://www.rfk.com


At 11:11 AM 11/4/98 -0500, John Wiersba wrote:
>Can anyone reproduce this on a WinNT4 machine under b19 (or maybe under
>b20)?
>
>$ touch 10101010 asdf
>$ chmod 444 asdf
>$ cp asdf fdsa1
>$ cp -p asdf fdsa2
>cp: fdsa2: Permission denied
>$ ls -l
>total 0
>-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
>-r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
>-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
>
>Note that the -p option correctly copies the timestamp, but that the
>file access mode is NOT
>copied (I assume that's why there's an error message).  
>
>Why can't the file access mode be copied?
>
>I'm running b19 with coolview under WinNT, I don't know which service
>pack, but the System Properties shows 4.00.1381.
>
>-----Original Message-----
>From: John Wiersba [ mailto:John.Wiersba@medstat.com ]
>Sent: Monday, November 02, 1998 11:25 AM
>To: 'gnu-win32@cygnus.com'
>Subject: bug in cp: Permission denied
>
>
>What's up with this?
>
>touch a
>cp -p a b
>cp: b: Permission denied
>
>The copy actually works, and the timestamp is copied, but not the
>permissions. 
>
>I'm running b19 with coolview on NT with everything binary-mounted.
>
>John Wiersba (john.wiersba@medstat.com)
>-
>For help on using this list (especially unsubscribing), send a message
>to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-07  0:01 John Wiersba
  1998-11-08 23:11 ` Michael Hirmke
  0 siblings, 1 reply; 13+ messages in thread
From: John Wiersba @ 1998-11-07  0:01 UTC (permalink / raw)
  To: 'Colman Curtin', 'gnu-win32@cygnus.com'

>> What's up with this?
>>
>> touch a
>> cp -p a b
>> cp: b: Permission denied
>
> h? a or b are not Dos devices.
> does b exist already?

No.  a and b were meant to be generic file names.  I have tested this
several times in different (empty) directories in different file
systems.  In all cases, I get the same behavior, i.e. the file contents
and timestamp are copied correctly but the file access mode is not.

Here is a copy of a post I made yesterday to gnu-win32@cygnus.com which
didn't seem to make it into the mailing list (why not??):

> Can anyone reproduce this on a WinNT4 machine under b19 (or maybe
under b20)?
>
> $ touch 10101010 asdf
> $ chmod 444 asdf
> $ cp asdf fdsa1
> $ cp -p asdf fdsa2
> cp: fdsa2: Permission denied
> $ ls -l
> total 0
> -r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
> -r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
> -rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
>
> Note that the -p option correctly copies the timestamp, but that the
file access mode is NOT
> copied (I assume that's why there's an error message).  
>
> Why can't the file access mode be copied?
>
> I'm running b19 with coolview under WinNT, I don't know which service
pack, but the System 
> Properties shows 4.00.1381.

John Wiersba (john.wiersba@medstat.com)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-06 20:36 Colman Curtin
  0 siblings, 0 replies; 13+ messages in thread
From: Colman Curtin @ 1998-11-06 20:36 UTC (permalink / raw)
  To: John Wiersba, gnu-win32

>-----Original Message-----
>From: Earnie Boyd [ mailto:earnie_boyd@yahoo.com ]
>Sent: 04 November 1998 01:51
>To: John Wiersba; gnu-win32@cygnus.com
>Subject: Re: bug in cp: Permission denied
>
>
>
>
>b is a device under Win32.  The FAQ states that files named similar to
>a MSDOS device will give you problems.  Actually, I'm surprised that
>you didn't get an error with a also.
uh? a or b are not Dos devices.
does b exist already?
>
>
>---John Wiersba <John.Wiersba@medstat.com> wrote:
>>
>> What's up with this?
>> 
>> touch a
>> cp -p a b
>> cp: b: Permission denied
>> 
>> The copy actually works, and the timestamp is copied, but not the
>> permissions. 
>> 
>> I'm running b19 with coolview on NT with everything binary-mounted.
>> 
>> John Wiersba (john.wiersba@medstat.com)
>> -
>> For help on using this list (especially unsubscribing), send a
>message to
>> "gnu-win32-request@cygnus.com" with one line of text: "help".
>> 
>
>==
>-                  \\||//
>-------------o0O0--Earnie--0O0o--------------
>--          earnie_boyd@yahoo.com          --
>-- http://www.freeyellow.com/members5/gw32 --
>----------------ooo0O--O0ooo-----------------
>
>PS: Newbie's, you should visit my page.
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>-
>For help on using this list (especially unsubscribing), send a 
>message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: bug in cp: Permission denied
  1998-11-04  9:30 Earnie Boyd
  1998-11-05 21:53 ` Larry Hall
@ 1998-11-06 15:02 ` Matt Behrens
  1 sibling, 0 replies; 13+ messages in thread
From: Matt Behrens @ 1998-11-06 15:02 UTC (permalink / raw)
  To: gnu-win32

Actually, that doesn't make much sense.  COM1, LPT1, AUX, and their
brethren  operate with different DOS semantics than drive letters.  This
is evidenced by the fact that in any DOS command prompt,

	C:\> COPY FOO.TXT A
		and
	C:\> COPY FOO.TXT A:
		are different, but

	C:\> COPY FOO.TXT AUX
		and
	C:\> COPY FOO.TXT AUX:
		are identical.

Earnie Boyd wrote:
> 
> b is a device under Win32.  The FAQ states that files named similar to
> a MSDOS device will give you problems.  Actually, I'm surprised that
> you didn't get an error with a also.
> 
> ---John Wiersba <John.Wiersba@medstat.com> wrote:
> >
> > What's up with this?
> >
> > touch a
> > cp -p a b
> > cp: b: Permission denied
> >
> > The copy actually works, and the timestamp is copied, but not the
> > permissions.
> >
> > I'm running b19 with coolview on NT with everything binary-mounted.
> >
> > John Wiersba (john.wiersba@medstat.com)
> > -
> > For help on using this list (especially unsubscribing), send a
> message to
> > "gnu-win32-request@cygnus.com" with one line of text: "help".
> >
> 
> ==
> -                  \\||//
> -------------o0O0--Earnie--0O0o--------------
> --          earnie_boyd@yahoo.com          --
> -- http://www.freeyellow.com/members5/gw32 --
> ----------------ooo0O--O0ooo-----------------
> 
> PS: Newbie's, you should visit my page.
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".

-- 
  __
 /-/    Matt Behrens
( (     mbehrens@iserv.net
 ) )    Iserv Network Operations Center
/_/     http://inoc.iserv.net/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: bug in cp: Permission denied
  1998-11-04  9:30 Earnie Boyd
@ 1998-11-05 21:53 ` Larry Hall
  1998-11-06 15:02 ` Matt Behrens
  1 sibling, 0 replies; 13+ messages in thread
From: Larry Hall @ 1998-11-05 21:53 UTC (permalink / raw)
  To: earnie_boyd, John Wiersba, gnu-win32

'b' is a device under Win32??  Where in the FAQ does it say this???  What
the hell is 'b'?

I'm assuming that 'b' is not already a file in the directory where John was
trying this and that the proper permissions exist for that directory.  I
find the sequence John reports works fine for me with b19 + coolview on
NT SP4.

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797               http://www.rfk.com


At 05:51 PM 11/3/98 -0800, Earnie Boyd wrote:
>
>
>b is a device under Win32.  The FAQ states that files named similar to
>a MSDOS device will give you problems.  Actually, I'm surprised that
>you didn't get an error with a also.
>
>
>---John Wiersba <John.Wiersba@medstat.com> wrote:
>>
>> What's up with this?
>> 
>> touch a
>> cp -p a b
>> cp: b: Permission denied
>> 
>> The copy actually works, and the timestamp is copied, but not the
>> permissions. 
>> 
>> I'm running b19 with coolview on NT with everything binary-mounted.
>> 
>> John Wiersba (john.wiersba@medstat.com)
>> -
>> For help on using this list (especially unsubscribing), send a
>message to
>> "gnu-win32-request@cygnus.com" with one line of text: "help".
>> 
>
>==
>-                  \\||//
>-------------o0O0--Earnie--0O0o--------------
>--          earnie_boyd@yahoo.com          --
>-- http://www.freeyellow.com/members5/gw32 --
>----------------ooo0O--O0ooo-----------------
>
>PS: Newbie's, you should visit my page.
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-04 11:39 John Wiersba
  1998-11-07  3:05 ` Larry Hall
  0 siblings, 1 reply; 13+ messages in thread
From: John Wiersba @ 1998-11-04 11:39 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

Can anyone reproduce this on a WinNT4 machine under b19 (or maybe under
b20)?

$ touch 10101010 asdf
$ chmod 444 asdf
$ cp asdf fdsa1
$ cp -p asdf fdsa2
cp: fdsa2: Permission denied
$ ls -l
total 0
-r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
-r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
-rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2

Note that the -p option correctly copies the timestamp, but that the
file access mode is NOT
copied (I assume that's why there's an error message).  

Why can't the file access mode be copied?

I'm running b19 with coolview under WinNT, I don't know which service
pack, but the System Properties shows 4.00.1381.

-----Original Message-----
From: John Wiersba [ mailto:John.Wiersba@medstat.com ]
Sent: Monday, November 02, 1998 11:25 AM
To: 'gnu-win32@cygnus.com'
Subject: bug in cp: Permission denied


What's up with this?

touch a
cp -p a b
cp: b: Permission denied

The copy actually works, and the timestamp is copied, but not the
permissions. 

I'm running b19 with coolview on NT with everything binary-mounted.

John Wiersba (john.wiersba@medstat.com)
-
For help on using this list (especially unsubscribing), send a message
to
"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: bug in cp: Permission denied
@ 1998-11-04 11:39 Earnie Boyd
  0 siblings, 0 replies; 13+ messages in thread
From: Earnie Boyd @ 1998-11-04 11:39 UTC (permalink / raw)
  To: John Wiersba; +Cc: cygwin32-developers, gnu-win32 @cygnus.com

I don't have any definitive answer but my assumption is that cp still
has the file "copied to" open for write when it is trying to change
the permissions to read only, or it is a timing issue with the close()
function actually getting the file closed and the chmod() function
trying to change the permissions with the chmod() function winning the
race.


---John Wiersba <John.Wiersba@medstat.com> wrote:
>
> Thanks for your reply (the only one I've gotten).  This problem has
> nothing to do with the actual names of the files.
> 
> /junk> mount
> Device           Directory           Type        Flags
> \\.\tape1:       /dev/st1            native      text=binary
> \\.\tape0:       /dev/st0            native      text=binary
> \\.\b:           /dev/fd1            native      text=binary
> \\.\a:           /dev/fd0            native      text=binary
> C:               /                   native      text=binary
> /junk> touch 10101010 asdf
> /junk> chmod 444 asdf
> /junk> cp asdf fdsa1
> /junk> cp -p asdf fdsa2
> cp: fdsa2: Permission denied
> /junk> ls -l
> total 0
> -r--r--r--   1 jrw      jrwg            0 Oct 10 10:10 asdf
> -r--r--r--   1 jrw      jrwg            0 Nov  4 09:57 fdsa1
> -rw-r--r--   1 jrw      jrwg            0 Oct 10 10:10 fdsa2
> 
> Note that the -p option correctly copies the timestamp, but that the
> file access mode is NOT
> copied (I assume that's why there's an error message).  Why can't the
> file access mode be 
> copied?
> 

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd@yahoo.com          --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: bug in cp: Permission denied
@ 1998-11-04  9:30 Earnie Boyd
  1998-11-05 21:53 ` Larry Hall
  1998-11-06 15:02 ` Matt Behrens
  0 siblings, 2 replies; 13+ messages in thread
From: Earnie Boyd @ 1998-11-04  9:30 UTC (permalink / raw)
  To: John Wiersba, gnu-win32

b is a device under Win32.  The FAQ states that files named similar to
a MSDOS device will give you problems.  Actually, I'm surprised that
you didn't get an error with a also.


---John Wiersba <John.Wiersba@medstat.com> wrote:
>
> What's up with this?
> 
> touch a
> cp -p a b
> cp: b: Permission denied
> 
> The copy actually works, and the timestamp is copied, but not the
> permissions. 
> 
> I'm running b19 with coolview on NT with everything binary-mounted.
> 
> John Wiersba (john.wiersba@medstat.com)
> -
> For help on using this list (especially unsubscribing), send a
message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
> 

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd@yahoo.com          --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

end of thread, other threads:[~1998-11-08 23:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-02 10:01 bug in cp: Permission denied John Wiersba
1998-11-04  9:30 Earnie Boyd
1998-11-05 21:53 ` Larry Hall
1998-11-06 15:02 ` Matt Behrens
1998-11-04 11:39 John Wiersba
1998-11-07  3:05 ` Larry Hall
1998-11-04 11:39 Earnie Boyd
1998-11-06 20:36 Colman Curtin
1998-11-07  0:01 John Wiersba
1998-11-08 23:11 ` Michael Hirmke
1998-11-07  7:00 John Wiersba
1998-11-07  7:00 ` Larry Hall
1998-11-07  7:00 John Wiersba

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