X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 3 Apr 2009 17:44:47 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [1.7]: /usr/bin/install fails on network drives Message-ID: <20090403154447.GA852@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <49D4AC45 DOT 7040203 AT ecn DOT nl> <20090402150158 DOT GX12738 AT calimero DOT vinschen DOT de> <20090402152802 DOT GA12738 AT calimero DOT vinschen DOT de> <49D525C7 DOT 2060104 AT quicknet DOT nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49D525C7.2060104@quicknet.nl> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/