public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Writing to Windows Share issues fixed in cygwin1-20110829.dll.bz2
@ 2011-09-15 18:59 Keith Christian
  2011-09-16 17:24 ` Keith Christian
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Christian @ 2011-09-15 18:59 UTC (permalink / raw)
  To: cygwin

I stumbled across the following snapshot, cygwin1-20110829.dll.bz2,
and now I can create files in a Windows Share that I haven't been able
to properly access from Cygwin in months!

Corinna, whatever changes you made to this snapshot have fixed the
problem for me, at least.  Hope they can be included in the next
official cygwin1.dll release.  Now I can start using the share from
Cygwin again.

Great news!

==========Keith

--
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] 3+ messages in thread

* Re: Writing to Windows Share issues fixed in cygwin1-20110829.dll.bz2
  2011-09-15 18:59 Writing to Windows Share issues fixed in cygwin1-20110829.dll.bz2 Keith Christian
@ 2011-09-16 17:24 ` Keith Christian
  2011-10-04 14:42   ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Christian @ 2011-09-16 17:24 UTC (permalink / raw)
  To: cygwin

I was wrong.

Only some improvement using the cygwin1-20110829.dll.bz2 snapshot.
Problems still exist when trying to check in a file with RCS on this
Windows share.

Annotated test example below.  Apologies for not being brief.

Any ideas appreciated.  However, progress has been made with the 0829
snapshot, at least I can create files on this share......



# 1 - Comments: Verify the version of cygwin1.dll:

    Fri Sep 16 10:24:20 (kchristian@laptop-pc) /cygdrive/z>uname -a
    CYGWIN_NT-5.1 laptop-pc 1.7.10s(0.251/5/3) 20110829 15:53:50 i686 Cygwin




# 2 - Comments: Create a directory tree on the file share:

    Fri Sep 16 10:24:29 (kchristian@laptop-pc) /cygdrive/z>mkdir -p foo/bar/baz




# 3 - Comments: Change to the "leaf" directory:

    Fri Sep 16 10:25:33 (kchristian@laptop-pc) /cygdrive/z>cd foo/bar/baz




# 4 - Comments: Create a test file:

    Fri Sep 16 10:25:52 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>pwd > testfile.1




# 5 - Comments: Cat the file to verify its contents:

    Fri Sep 16 10:26:05 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>cat testfile.1
    /cygdrive/z/foo/bar/baz




# 6 - Comments: Show file permissions and ownership:

    Fri Sep 16 10:27:58 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>ls -l testfile.1
    -rwx------+ 1 kchristian Domain Users 24 Sep 16 10:26 testfile.1




# 7 - Comments: See what Windows rights are:

    Fri Sep 16 10:28:01 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>cacls testfile.1
    Z:\foo\bar\baz\testfile.1 COMPANY_XYZ\kchristian:C
                              BUILTIN\Administrators:F
                              NT AUTHORITY\SYSTEM:F




# 8 - Comments: Create an RCS directory.

    Fri Sep 16 10:31:12 (kchristian@laptop-pc) /cygdrive/z/foo/bar/baz>mkdir RCS




# 9 - Comments: Show the newly created RCS file permissions and ownership:

    Fri Sep 16 10:31:24 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>ls -dl RCS/
    drwx------+ 1 kchristian Domain Users 0 Sep 16 10:31 RCS/




# 10 - Comments: See what Windows rights are:

    Fri Sep 16 10:31:33 (kchristian@laptop-pc) /cygdrive/z/foo/bar/baz>cacls RCS
    Z:\foo\bar\baz\RCS COMPANY_XYZ\kchristian:(OI)(CI)C
                       BUILTIN\Administrators:(OI)(CI)F
                       NT AUTHORITY\SYSTEM:(OI)(CI)F




# 11 - Comments:  Check testfile.1 into RCS - first indication of
problems.  Unable to use the "testfile.1" name with a ",v" appended to
it:

    Fri Sep 16 10:31:35 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>ci -l -m"Attempted check in using 20110829
Cygwin snapshot" -t-"Testing new cygwin snapshot to see if it fixes
Windows Share writing difficulties" ./testfile.1
    ./RCS/testfile.1,v  <--  ./testfile.1
    initial revision: 1.1
    ci: ./RCS/testfile.1,v: Permission denied
    ci: saved in ./RCS/_0qrsNBd




# 12 - Comments: Directory listing of the temporary filename in RCS.
(The contents of _0qrsNBd are correct, howver.)

    Fri Sep 16 10:32:06 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>ls -alrtR RCS
    RCS:
    total 1
    drwx------+ 1 kchristian Domain Users   0 Sep 16 10:31 ..
    -rwx------+ 1 kchristian Domain Users 338 Sep 16 10:32 _0qrsNBd
    drwx------+ 1 kchristian Domain Users   0 Sep 16 10:32 .




# 13 - Comments: Cygwin's interpretation of ACL's of the RCS directory:

    Fri Sep 16 10:32:37 (kchristian@laptop-pc)
/cygdrive/z/foo/bar/baz>getfacl RCS
    # file: RCS
    # owner: kchristian
    # group: Domain Users
    user::rwx
    group::---
    group:root:rwx
    group:SYSTEM:rwx
    mask:rwx
    other:---
    default:user::rwx
    default:user:kchristian:rwx
    default:group::---
    default:group:root:rwx
    default:group:SYSTEM:rwx
    default:mask:rwx
    default:other:---




# 14 - Comments: DONE.



======Keith

--
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] 3+ messages in thread

* Re: Writing to Windows Share issues fixed in cygwin1-20110829.dll.bz2
  2011-09-16 17:24 ` Keith Christian
@ 2011-10-04 14:42   ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2011-10-04 14:42 UTC (permalink / raw)
  To: cygwin

On Sep 16 11:17, Keith Christian wrote:
> I was wrong.
> 
> Only some improvement using the cygwin1-20110829.dll.bz2 snapshot.
> Problems still exist when trying to check in a file with RCS on this
> Windows share.
> 
> Annotated test example below.  Apologies for not being brief.
> 
> Any ideas appreciated.  However, progress has been made with the 0829
> snapshot, at least I can create files on this share......
> [...]
> # 11 - Comments:  Check testfile.1 into RCS - first indication of
> problems.  Unable to use the "testfile.1" name with a ",v" appended to
> it:
> 
>     Fri Sep 16 10:31:35 (kchristian@laptop-pc)
> /cygdrive/z/foo/bar/baz>ci -l -m"Attempted check in using 20110829
> Cygwin snapshot" -t-"Testing new cygwin snapshot to see if it fixes
> Windows Share writing difficulties" ./testfile.1
>     ./RCS/testfile.1,v  <--  ./testfile.1
>     initial revision: 1.1
>     ci: ./RCS/testfile.1,v: Permission denied
>     ci: saved in ./RCS/_0qrsNBd

That's weird.  The fact that you can create and write the _0qrsNBd
file shows that the write permission issue is fixed.  It seems that
renaming the file to testfile.1,v fails, but it's not clear why this
should happen.

What kind of share is that (/usr/lib/csih/getVolInfo /cygdrive/z)?

Does manual renaming the _0qrsNBd file work?

Does deleteing the _0qrsNBd file work?

Can you reproduce this situation from scratch and call the ci
command under strace, like this

  strace -o ci.trace ci -l -mfoo ./testfile.1

and send the strace output here?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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] 3+ messages in thread

end of thread, other threads:[~2011-10-04 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15 18:59 Writing to Windows Share issues fixed in cygwin1-20110829.dll.bz2 Keith Christian
2011-09-16 17:24 ` Keith Christian
2011-10-04 14:42   ` Corinna Vinschen

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