On Apr 2 22:53, A.R. Burgers wrote: > Corinna Vinschen schreef: > > >> Are these Samba shares by any chance? I can reproduce this only > >> for Samba shares, not for remote Windows NTFS drives. > > > > Oh, btw., install works fine for me, only mv complains with "failed to > > preserve ownership". Your above example also doesn't show any error on > > install... > > I've tried several shares. Only on one of them I get an > error with install: > >> //ecn/groups/g_zon_software/cygwin17/zz3.txt >> install: setting permissions for >> `//ecn/groups/g_zon_software/cygwin17/zz3.txt': Permission denied > > When I look at the properties of this share it says it uses DFS > (Distributed File System). This drive shows the access bits > as -rwxrwxrwx, the others have -rw-r--r-- > > with all of them I see the Permission Denied on mv. > I have to ask our administrators for more details.
That would be nice. I can explain and get rid of this "permission denied" message on Samba. What happens is that files are created under the uid of the Unix user you're authenticated as, not the uid/SID of your Windows user. `mv -f' calls chown to set the owner to your Cygwin uid which in turn tries to set the file's SID to your Windows user SID. That can't work, unless you have a uid<->SID mapping in your domain using winbind. As a result, the NT call trying to set the file owner returns with STATUS_INVALID_OWNER. I can catch this case for Samba explicitely. However, I can't do anything against a real ACCESS_DENIED sort of error as it is returned by your DFS. I see that it occurs at the same place where the Samba problame occurs, but that's it. I have no experience with DFS at all, and this would require to debug what happens in your environment. If you're willing to test, I would give you a special handcrafted Cygwin DLL which prints more detailed strace output to analyze what happens. I can't promise that this is a fixable situation, of course. Btw., can you run /usr/lib/csih/getVolInfo.exe from the csih package on your DFS drives (/ecn/groups and one of the others) and send the output to this list? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/