delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/30/03:25:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47A03418.4070106@nightwolf.org.uk>
Date: Wed, 30 Jan 2008 08:23:52 +0000
From: Chris J <cej-cygwin AT nightwolf DOT org DOT uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: pdksh having problems starting native gvim on Vista x64
References: <479E344B DOT 4000006 AT nightwolf DOT org DOT uk> <Pine DOT GSO DOT 4 DOT 63 DOT 0801281514110 DOT 26239 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0801281514110.26239@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Igor Peshansky wrote:
> 
> Can you please post the output of "ls -l /cygdrive/c/vim/vim71/gvim.exe",
> "ls -ld /cygdrive/c/vim/vim71", and "ls -ld /cygdrive/c/vim"?  Also of
> "cygcheck /cygdrive/c/vim/vim71/gvim.exe"?


$ pwd
/cygdrive/c/Vim
$ ls -l vim71/gvim.exe
----------+ 1 chris None 3048448 Jun 22  2007 vim71/gvim.exe
$ ls -la
total 36
drwx------+  4 Administrators None         0 Dec  2 23:07 .
d---------+ 20 ????????       ???????? 20480 Jan 30 02:31 ..
-rwx------+  1 Administrators None       901 Oct 19 19:22 _vimrc
d---------+ 17 chris          None      8192 Dec  2 23:06 vim71
drwx------+ 11 Administrators None      4096 Oct 19 19:22 vimfiles
$ chmod a+x vim71
chmod: changing permissions of `vim71': Permission denied
$ cygcheck vim71/gvim.exe
vim71/gvim.exe
$

Now I've checked via Windows Explorer the owner of the vim71 directory and
it is defined as myself, but I can't work out why I'm getting a permission
denied error.

I have done some poking though. First I tried setting the owner (via
windows explorer) to chris through the Vim directory, but that revoked all
permissions from all files folders and I got continual permission denied
errors on chmod. There's an strace of the chmod output at [1] if it's of
any use.

So I've gone in the other direction and set the owner to Administrators
throughout the C:\Vim tree, and now every folder and every file has perms
of 700 which were automagically assigned on change of ownership. Thus I can
now execute Vim from ksh. I still get permission denied errors on chmod
(even though chris is a member of Administrators), but now it's not an
(immediate) concern.

Although I've resolved the problem, I'd be interested to know what could be
causing this, although a quick google suggests it could be down to Vista's
UAC [2]. Has there been any more work done in this area, or is the
workaround suggested there still the only one (short of actually disabling
UAC).

> 
> See /usr/share/doc/Cygwin/rebase-2.4.3.README...  But rebase is more
> likely to fix your zsh problem than your pdksh problem.
> 	Igor

Yep, thanks.

Cheers,

Chris
[1] http://cej.nightwolf.org.uk/strace.out
[2] http://nevali.net/2007/01/update-more-on-cygwin-and-uac/

-- 
\ Chris Johnson                 \
 \ cej AT nightwolf DOT org DOT uk          \ Quidquid latin dictum sit altum viditur
  \ http://cej.nightwolf.org.uk/  \
   \ http://redclaw.org.uk/        ~--------------------------------------



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019