Re: permission denied problem

2008-12-31 Thread Markus Schönhaber
sowiso:

>> That was the first thing I tried but didn't help.  ls -l shows the
>> permission as "-rxwr-xr-x+", but I am still getting the permission

> I wonder if the "+" means that the file is in currently in use?

No, it means that ACLs are set for the file.
man getfacl

Regards
  mks

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



Re: permission denied problem

2008-12-31 Thread sowiso

- Original Message - 
From: "peter360" 
To: 
Sent: Wednesday, December 31, 2008 9:12 AM
Subject: Re: permission denied problem

> > chmod a+x ./gnupt-w32cli-1.4.9.exe
> >
> >
>
> That was the first thing I tried but didn't help.  ls -l shows the
> permission as "-rxwr-xr-x+", but I am still getting the permission
denied
> message.

I wonder if the "+" means that the file is in currently in use?

-Andreas


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



Re: permission denied problem

2008-12-31 Thread peter360



Christopher Faylor-8 wrote:
> 
> 
> chmod a+x ./gnupt-w32cli-1.4.9.exe
> 
> 

That was the first thing I tried but didn't help.  ls -l shows the
permission as "-rxwr-xr-x+", but I am still getting the permission denied
message.


-- 
View this message in context: 
http://www.nabble.com/permission-denied-problem-tp21208388p21228523.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: permission denied problem

2008-12-29 Thread Christopher Faylor
On Mon, Dec 29, 2008 at 12:05:12PM -0800, peter360 wrote:
>
>I am running cygwin on vista.
>
>Recently I downloaded the gnupg installer and tried to run it in cygwin
>bash, but got this message:
>$ ./gnupg-w32cli-1.4.9.exe 
>bash: ./gnupg-w32cli-1.4.9.exe: Permission denied

chmod a+x ./gnupt-w32cli-1.4.9.exe

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



permission denied problem

2008-12-29 Thread peter360

I am running cygwin on vista.

Recently I downloaded the gnupg installer and tried to run it in cygwin
bash, but got this message:
$ ./gnupg-w32cli-1.4.9.exe 
bash: ./gnupg-w32cli-1.4.9.exe: Permission denied

If I run the same command the native cmd.exe window, the installer runs
(after windows prompt me for administrator password) ok.

Can someone explain the difference here?  I thought I could use cygwin bash
to launch native windows applications.  Thanks!
-- 
View this message in context: 
http://www.nabble.com/permission-denied-problem-tp21208388p21208388.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



Re: can any body help me to solve the permission denied problem

2008-10-13 Thread Reid Thompson
On Sun, 2008-10-12 at 18:17 -0700, andylai wrote:
> can anybody help me to solve this problem??? thk
> 
> andylai wrote:
> > 
> > don't not why after i run the command below:
> > tar -zxf
> > cygdrive/d/toolchains/cygwin/sdcc-2.7.0-2sensinode_banked-cygwin.tar.gz
> > the condition of cannot open: permission denied will come out like the
> > picture below:
> > can anybody here help me solve the problem ??thk 
> >  http://www.nabble.com/file/p19902675/cygwin.jpg 
Do any of these .asm/.o files already exist?
If so, what are there permissions?
Does any other app already have them 'open'?


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



Re: can any body help me to solve the permission denied problem

2008-10-12 Thread Larry Hall (Cygwin)

andylai wrote:

andylai wrote:

don't not why after i run the command below:
tar -zxf
cygdrive/d/toolchains/cygwin/sdcc-2.7.0-2sensinode_banked-cygwin.tar.gz
the condition of cannot open: permission denied will come out like the
picture below:
can anybody here help me solve the problem ??thk 
 http://www.nabble.com/file/p19902675/cygwin.jpg 

can anybody help me to solve this problem??? thk


Do you have sufficient space?  Have you tried creating the path(s)
and touching a file or two in the destination directory to make sure
you can do that?  If this doesn't work, that would explain the problem.
You need to look at what's causing these failures.  If doing this does
work, try repeating the the extraction and see whether the files going into
the paths you've created are successful of not.  Take a look at what
you get from this whole process and what the permissions are.

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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Re: can any body help me to solve the permission denied problem

2008-10-12 Thread andylai

can anybody help me to solve this problem??? thk

andylai wrote:
> 
> don't not why after i run the command below:
> tar -zxf
> cygdrive/d/toolchains/cygwin/sdcc-2.7.0-2sensinode_banked-cygwin.tar.gz
> the condition of cannot open: permission denied will come out like the
> picture below:
> can anybody here help me solve the problem ??thk 
>  http://www.nabble.com/file/p19902675/cygwin.jpg 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/can-any-body-help-me-to-solve-the-permission-denied-problem-tp19902675p19947674.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



can any body help me to solve the permission denied problem

2008-10-09 Thread andylai

don't not why after i run the command below:
tar -zxf
cygdrive/d/toolchains/cygwin/sdcc-2.7.0-2sensinode_banked-cygwin.tar.gz
the condition of cannot open: permission denied will come out like the
picture below:
can anybody here help me solve the problem ??thk 
http://www.nabble.com/file/p19902675/cygwin.jpg 






-- 
View this message in context: 
http://www.nabble.com/can-any-body-help-me-to-solve-the-permission-denied-problem-tp19902675p19902675.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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



RE: Permission denied problem

2007-08-20 Thread Marko Loparic
On 17 August 2007 17:35, Dave Korn

>  For comparison, what does the standard windows 'cacls.exe' utility tell you
> about that directory, and about one where the problem doesn't happen?

cacls will certainly be of great help, thanks a lot. Here is what I
get for the directory without problems:

$ cacls 'x:\02_0024\PPP'
x:\02_0024\PPP NT AUTHORITY\SYSTEM:(OI)(CI)F
 CORP\AllShareAdminGroup:(OI)(CI)F
 CORP\AllShareListGroup:(CI)R
 CORP\13.G__Access_Admin:R
 CORP\13.G__R_D_ITS:R
 CORP\13.G__Spark_International:R
 CORP\13.G__Team_Access_Admin:R
 CORP\16.0024_MO_Access_Admin:R
 CORP\13.G__Assistant:R
 CORP\13.G__Team_External:R
 CORP\13.G__Team_Member:R

And here is the directory with the permission denied problem

$ cacls 'x:\02_0024\PPP\QQQ'
x:\02_0024\PPP\QQQ CORP\13.G__Mgmt_Team:(DENY)(special access:)
DELETE
SYNCHRONIZE

 CORP\13.G__R_D_ITS:(DENY)(special access:)
  DELETE
  SYNCHRONIZE

 CORP\13.G__R_D_Restricted:(DENY)(special access:)
 DELETE
 SYNCHRONIZE

 CORP\13.G__RALM_Restricted:(DENY)(special access:)
  DELETE
  SYNCHRONIZE

 CORP\13.G__SCS_Restricted:(DENY)(special access:)
 DELETE
 SYNCHRONIZE

 CORP\13.G__Team_External:(DENY)(special access:)
DELETE
SYNCHRONIZE

 NT AUTHORITY\SYSTEM:(OI)(CI)F
 CORP\AllShareAdminGroup:(OI)(CI)F
 CORP\AllShareListGroup:(CI)R
 CORP\13.G__Access_Admin:(CI)R
 CORP\13.G__Team_Access_Admin:(CI)R
 CORP\16.0024_MO_Access_Admin:(CI)R
 CORP\13.G__Mgmt_Team:(OI)(CI)(special access:)
DELETE
READ_CONTROL
SYNCHRONIZE
FILE_GENERIC_WRITE
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_WRITE_EA
FILE_WRITE_ATTRIBUTES

 CORP\13.G__R_D_ITS:(OI)(CI)C
 CORP\13.G__R_D_Restricted:(OI)(CI)(special access:)
 DELETE
 READ_CONTROL
 SYNCHRONIZE
 FILE_GENERIC_WRITE
 FILE_WRITE_DATA
 FILE_APPEND_DATA
 FILE_WRITE_EA
 FILE_WRITE_ATTRIBUTES

 CORP\13.G__RALM_Restricted:(OI)(CI)(special access:)
  DELETE
  READ_CONTROL
  SYNCHRONIZE
  FILE_GENERIC_WRITE
  FILE_WRITE_DATA
  FILE_APPEND_DATA
  FILE_WRITE_EA
  FILE_WRITE_ATTRIBUTES

 CORP\13.G__SCS_Restricted:(OI)(CI)(special access:)
 DELETE
 READ_CONTROL
 SYNCHRONIZE
 FILE_GENERIC_WRITE
 FILE_WRITE_DATA
 FILE_APPEND_DATA
 FILE_WRITE_EA
 FILE_WRITE_ATTRIBUTES

 CORP\13.G__Team_External:(OI)(CI)C
 CORP\13.G__Team_Member:(OI)(CI)(special access:)
  READ_CONTROL
  WRITE_DAC
  WRITE_OWNER
  SYNCHRONIZE
  FILE_GENERIC_READ
  FILE_GENERIC_WRITE
  FILE_GENERIC_EXECUTE
  FILE_READ_DATA
  FILE_WRITE_DATA
  FILE_APPEND_DATA
  FILE_READ_EA
  FILE_WRITE_EA
  FILE_EXECUTE
  

RE: Permission denied problem

2007-08-17 Thread Dave Korn
On 17 August 2007 17:26, Marko Loparic wrote:

> $ getfacl.exe /cygdrive/x/PPP/QQQ
> # file: /cygdrive/x/PPP/QQQ
> # owner: ffa195
> # group: mkgroup-l-d
> user::rwx
> group::r-x
> other:r-x
> mask:rwx
> 
> for both the directories with the permission problem and for other
> directories without the problem.

  For comparison, what does the standard windows 'cacls.exe' utility tell you
about that directory, and about one where the problem doesn't happen?


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Permission denied problem

2007-08-17 Thread Marko Loparic
Hi,

I have a permission denied problem with a specific network directory

$ ls /cygdrive/x/PPP/QQQ
ls: cannot open directory /cygdrive/x/PPP/QQQ: Permission denied

I described this problem some time ago in
http://cygwin.com/ml/cygwin/2007-02/msg00023.html

Larry Hall suggested me to try nontsec, but this did not change the behaviour.

I also read the doc in

http://cygwin.com/cygwin-ug-net/ntsec.html

but couldn't get a solution for the problem. getfacl gives the same answer

$ getfacl.exe /cygdrive/x/PPP/QQQ
# file: /cygdrive/x/PPP/QQQ
# owner: ffa195
# group: mkgroup-l-d
user::rwx
group::r-x
other:r-x
mask:rwx

for both the directories with the permission problem and for other
directories without the problem.

Thank you very much in advance!
Marko

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



Re: Permission denied problem

2007-02-01 Thread Larry Hall (Cygwin)

Marko Loparic wrote:

Hi,

Is there a way to make cygwin executables to have the same permission
rights as cmd.exe or other windows applications?



You can try setting "nontsec" in your CYGWIN environment variable.  See
 for details.


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

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Permission denied problem

2007-02-01 Thread Marko Loparic

Hi,

Is there a way to make cygwin executables to have the same permission
rights as cmd.exe or other windows applications?

For the moment I can't access a directory inside cygwin:

$ ls /cygdrive/x/PPP/QQQ
ls: cannot open directory /cygdrive/x/PPP/QQQ/: Permission denied

Windows applications like windows explorer, emacs (windows emacs not
the one from cygwin) navigate inside the QQQ directory without
problems.

Using DOS cmd.exe window I can make the dir command on the QQQ directory:

X:\PPP\QQQ>dir
22/11/2006  15:48  RRR
05/01/2007  17:23  SSS

However using cygwin ls from DOS does not work:

X:\PPP\QQQ>c:\cygwin\bin\ls.exe
/usr/bin/ls: cannot open directory .: Permission denied

while it works fine on other directories.

Checking the permissions of the QQQ directory I realise that
effectively the IT staff in charge of the windows network has
restricted to permissions to it (I couldn't guess what they mean). I
have little hope to have their help to solve the problem, that is why
I would like  to get ls to have the same rights as dir.

Cygwin does not tell me much about the permissions of the directory.

$ ls /cygdrive/x/PPP | grep QQQ
drwxr-xr-x 1 marko mkgroup-l-d 0 Jan 31 10:25 QQQ

Thank you very much in advance,
Marko

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



Re: "/bin/bash: Permission denied" problem with ssh under WinXP 2003 x64 resolved ... somehow

2006-11-16 Thread Larry Hall (Cygwin)

Brian Kasper wrote:
In complete frustration, I wiped my entire Cygwin install and 
re-downloaded and -installed everything.  Then, on a whim, I logged in 
as the actual "Administrator" account on my box (instead of my account, 
which *is* a member of the Administrators group) and configured sshd in 
a bash shell by issuing the following commands:


mkgroup -l -u > /etc/group
mkpasswd -l > /etc/passwd
ssh-host-config
(accept all defaults and reasonable options, including privsep)

ssh-user-config
(create all tokens and set all to be valid for login)

cygrunsrv -S sshd
(watch, startled, as no "Error 1062" message appears)

ssh localhost
(it works, and there was much rejoicing)

I then logged out and logged in as my user account and repeated the 
ssh-user-config step.  "ssh localhost" then worked!


I wish I had better information about exactly what resolved the problem, 
but all I can say is it appears one must actually be "Administrator" to 
get sshd working -- perhaps there's some subtle difference between the 
"Administrator" user and any other user that happens to be in the 
"Administrator" group?


For the record, here's the output of "uname -a" on my system:

CYGWIN_NT-5.2-WOW64 ABF466 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin

And the version information reported by "/usr/sbin/sshd --help":

OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006

Thanks to everyone who made suggestions.  I wish I had definitive 
information as to exactly what fixed the problem 


So do we. ;-)  Still, anecdotal information can also be useful.  All I can
say is that if this worked for you, it's likely an issue of W2K3 x64, since
there is no magic generally to the "Administrator" account.  I've installed
the ssh service on W2K and XP using my user id (which is only part of the
Administrators group).

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (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/



"/bin/bash: Permission denied" problem with ssh under WinXP 2003 x64 resolved ... somehow

2006-11-16 Thread Brian Kasper
In complete frustration, I wiped my entire Cygwin install and 
re-downloaded and -installed everything.  Then, on a whim, I logged in 
as the actual "Administrator" account on my box (instead of my account, 
which *is* a member of the Administrators group) and configured sshd in 
a bash shell by issuing the following commands:


mkgroup -l -u > /etc/group
mkpasswd -l > /etc/passwd
ssh-host-config
(accept all defaults and reasonable options, including privsep)

ssh-user-config
(create all tokens and set all to be valid for login)

cygrunsrv -S sshd
(watch, startled, as no "Error 1062" message appears)

ssh localhost
(it works, and there was much rejoicing)

I then logged out and logged in as my user account and repeated the 
ssh-user-config step.  "ssh localhost" then worked!


I wish I had better information about exactly what resolved the problem, 
but all I can say is it appears one must actually be "Administrator" to 
get sshd working -- perhaps there's some subtle difference between the 
"Administrator" user and any other user that happens to be in the 
"Administrator" group?


For the record, here's the output of "uname -a" on my system:

CYGWIN_NT-5.2-WOW64 ABF466 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin

And the version information reported by "/usr/sbin/sshd --help":

OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006

Thanks to everyone who made suggestions.  I wish I had definitive 
information as to exactly what fixed the problem 


-B


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



Re: Cygwin 1.5.9 Permission Denied Problem

2004-04-29 Thread Larry Hall
At 07:35 PM 4/29/2004, you wrote:
>--- Larry Hall <[EMAIL PROTECTED]> 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/



Re: Cygwin 1.5.9 Permission Denied Problem

2004-04-29 Thread ward harold
--- Larry Hall <[EMAIL PROTECTED]> 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.
 
> >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?

> 
> >I'm completely out of ideas any help/suggestions
> would
> >be greatly appreciated at this point.
> >
> >... WkH
> >
> >cygcheck -s -v -r yields:
> 
> 
> 
> 
> 
> --
> Larry Hall 
> http://www.rfk.com
> RFK Partners, Inc.  (508)
> 893-9779 - RFK Office
> 838 Washington Street   (508)
> 893-9889 - FAX
> Holliston, MA 01746 
> 

Thanks ... WkH






__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: Cygwin 1.5.9 Permission Denied Problem

2004-04-29 Thread Larry Hall
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.  


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


>I'm completely out of ideas any help/suggestions would
>be greatly appreciated at this point.
>
>... WkH
>
>cygcheck -s -v -r yields:





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



Cygwin 1.5.9 Permission Denied Problem

2004-04-29 Thread ward harold
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".

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.

I'm completely out of ideas any help/suggestions would
be greatly appreciated at this point.

... WkH

cygcheck -s -v -r yields:

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Apr 29 12:09:59 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service
Pack 4

Path:   c:\wharold\bin
C:\software\cygwin\usr\local\bin\
C:\software\cygwin\bin
C:\software\cygwin\bin
c:\PROGRAM FILES\THINKPAD\UTILITIES
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Program Files\IBM\Trace Facility\
c:\Program Files\IBM\Personal Communications\
c:\Notes
c:\Utilities
c:\Program Files\IBM\Infoprint Select
c:\software\cmvc\bin
c:\progra~1\IBM\Java141\bin

Output from C:\software\cygwin\bin\id.exe (nontsec)
UID: 1002(wharold) GID: 513(None)
513(None)

Output from C:\software\cygwin\bin\id.exe (ntsec)
UID: 1002(wharold) GID: 513(None)
0(root)  513(None)
544(Administrators)  545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `'binmode tty ntea''
HOME = `c:\'
PWD = `/tmp'

ALLUSERSPROFILE = `C:\Documents and Settings\All
Users'
ANT_HOME = `c:\apache-ant-1.6.0'
APPDATA = `C:\Documents and
Settings\wharold\Application Data'
COMPUTERNAME = `OTTAVIANO'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HELPDIR = `/usr/local/lib/zsh/help'
HOMEDRIVE = `c:'
HOMEPATH = `\wharold'
JAVA_HOME = `c:\progra~1\IBM\Java141'
LOGNAME = `wharold'
LOGONSERVER = `\\OTTAVIANO'
MANPATH = `/man:/usr/man:/usr/lang/man:/usr/local/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/c/wharold'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT =
`.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PCOMM_ROOT = `C:\Program Files\IBM\Personal
Communications\'
PDBASE = `C:\Program Files\IBM\Infoprint Select'
PDHOST = ` '
PD_SOCKET = `6874'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping
1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b01'
PROGRAMFILES = `C:\Program Files'
PS1 =
`%{%}%S%s%{%}%{%}%n%{%}%{[30;[EMAIL 
PROTECTED];49;49m%}%{%}%m%{%}
| %{%}%D{%a %d %b %Y}%{%}
%{%}%D{%H:%M:%S}%{%} |
%{%}%h%{%} |
%{%}%y%{%}%E
%{%}%5c%{%}
%{%}%#%{%} '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\wharold\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\wharold\LOCALS~1\Temp'
TVDEBUGFLAGS = `0x260'
TVLOGSESSIONCOUNT = `5000'
TZ = `CST6CDT5,M4.1.0/2,M10.5.0/2'
USERDOMAIN = `OTTAVIANO'
USERNAME = `wharold'
USERPROFILE = `C:\Documents and Settings\wharold'
WINDIR = `C:\WINNT'
WKH_DEV = `/cygdrive/c/wharold/dev'
WKH_HOME = `/cygdrive/c/wharold'
WKH_ZSH = `/cygdrive/c/wharold/zsh'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/
  (default) = `C:\software\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\software\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/lib
  (