delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/29/20:17:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040429200827.0395bd20@127.0.0.1>
X-Sender:
Date: Thu, 29 Apr 2004 20:13:21 -0400
To: ward harold <ward_harold AT yahoo DOT com>, Cygwin List <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: Cygwin 1.5.9 Permission Denied Problem
In-Reply-To: <20040429233527.27642.qmail@web50408.mail.yahoo.com>
References: <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040429185254 DOT 03937cf8 AT 127 DOT 0 DOT 0 DOT 1> <20040429233527 DOT 27642 DOT qmail AT web50408 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

At 07:35 PM 4/29/2004, you wrote:
>--- Larry Hall <cygwin-lh AT cygwin DOT com> wrote:
>> At 06:46 PM 4/29/2004, you wrote:
>> >I just installed the latest Cygwin (1.5.9) on a new
>> >Win2K laptop that is not part of any domain. I'm
>> >getting "permission denied" when I try to execute
>> >programs in a couple of situations. None of the
>> >obvious remedies have fixed the problem.
>> >
>> >Situation One: I've downloaded and built
>> >scheme48-0.57. It runs fine from the command line.
>> >After I did a 'chgrp Users' on it I was able to
>> >successfully 'M-x run-scheme' out of the Cygwin
>> >version of emacs. When I launch nt-emacs from the
>> >desktop, however, and attempt 'M-x run-scheme' I
>> get a
>> >permission error; specifically "permission denied,
>> >~/software/cygwin/usr/local/bin/scheme48".
>> 
>> 
>> Non-Cygwin programs don't understand POSIX paths.  
>> Unless you've performed some emacs wizardry, that
>> path won't lead you to anything.  If you do have
>> some wizardry in there, you might still find you 
>> need the ".exe" on the end.  
>
>Actually, emacs groks POSIX paths. The Cygwin emacs
>that I launch from the cmd line and the nt-emacs that
>I launch from the desktop use the same .emacs. The
>former works, the latter doesn't.


If you say so.  I've heard there are various LISP scripts
for non-Cygwin built emacsen to get them to parse the Cygwin
mount table so that they can handle the POSIX paths but I
don't use emacs so I don't know how they work and, of course,
I couldn't assume that you were using them.  Either way, if
it's not a Cygwin program, it's not going to understand the
POSIX paths natively so problems you have are really somewhat
off-topic for this list.


> 
>> >Situation Two: I unzip an internal build of Java
>> that
>> >a separate group provides me. I 'chmod a+x' all the
>> >executables in the distribution and then smoke test
>> >the JVM by typing: java -version. I'm rewarded
>> with:
>> >"zsh: permission denied: java" (same thing happens
>> >with bash, btw). I have a production JDK installed
>> in
>> >Program\ Files and it works fine. It turns out that
>> >the production version is owned by
>> >"Administrators:SYSTEM" so I chown the internal
>> >version's executables to "Administrator:SYSTEM" but
>> >the result is the same. Note that I have no
>> problems
>> >with these internal build on my Win2K workstation
>> >which (a) is part of a domain, and (b) is running
>> >Cygwin 1.5.7.
>> 
>> 
>> Not sure about this one.  'getfacl' might help.  You
>> 
>> could try removing "ntea" from your CYGWIN
>> environment 
>> variable, in case you're getting some weird
>> conflict.
>
>Interesting results from getfacl.
>
>For the production (InstallShield installed) java
>%getfacl `which java`:
># file: /cygdrive/c/WINNT/system32/java
># owner: Administrators
># group: SYSTEM
>user::rwx
>group::r-x
>group:Users:r-x
>group:Power Users:rwx
>mask:rwx
>other:r-x
>
>For the internal (unzipped) java
>%getfacl `which java`:
># file: /usr/local/java/bin/java
># owner: Administrators
># group: SYSTEM
>user::rwx
>group::r-x
>mask:rwx
>other:r-x
>
>Is there away to add ACLs for those additional groups
>from zsh or bash?
>


Sure.  'setfacl'.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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