delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/08/22:40:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <00d001bfb968$6d9657d0$944106d1@francis>
From: "Brian Sturk" <bsturk AT nh DOT ultranet DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
References: <005001bfb3f1$6b996b10$eb4106d1 AT francis> <390E9C82 DOT 943B0539 AT vinschen DOT de>
Subject: Re: perl scripts, file permissions, and external apps
Date: Mon, 8 May 2000 23:41:14 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Subject: Re: perl scripts, file permissions, and external apps


> > Hi I have what is probably a pretty stupid question but
> > I've read the manuals, searched the archives etc and couldn't find
> > an answer.  I'm updating perl scripts using gvim 5.6 for Win32 and
> > after saving my changes the permissions on the file change so
> > that I have to do a 'chmod 777 *.pl' to be able to execute them
> > again.
> 
> I would like to get some more information. I wonder why you
> have no execute permission afterwards. This is uncommon when
> playing with permissions in plain NT.
> 
> - Which version of the dll are you using?

I am using the new "net" release...  There doesn't seem to be
one central cygwin.dll anymore.

09/13/1999  09:03p             118,254 cygitcl30.dll
09/13/1999  09:03p              64,116 cygitk30.dll
09/13/1999  09:03p             484,904 cygtcl80.dll
09/13/1999  09:03p              19,134 cygtclpip80.dll
09/13/1999  09:03p              24,570 cygtclreg80.dll
09/13/1999  09:19p             786,312 cygtk80.dll
03/01/2000  12:23a             600,576 cygwin1.dll
03/01/2000  12:23a               4,096 mingwc10.dll
09/13/1999  09:24p             279,570 tix4180.dll

> - What are the permissions of the parent directory of the files?

drwx------   3 administ Administ     4096 May  4 00:15 scripts/

> - What are the permissions of the files before editing?

-rwxrwxrwx   1 administ Administ     1291 Apr 30 23:58 cc.pl*
-rwxrwxrwx   1 administ Administ     7202 May  4 00:15 crash_func.pl*
-rwxrwxrwx   1 administ Administ     1695 Mar 27  1999 mag.pl*
-rwxrwxrwx   1 administ Administ      934 Apr 30 23:50 rs.pl*


> - And after editing?

I edited crash_func.pl and saved it within vim:

-rwxrwxrwx   1 administ Administ     1291 Apr 30 23:58 cc.pl*
-rwx------   1 administ Administ     7202 May  8 23:35 crash_func.pl*
-rwxrwxrwx   1 administ Administ     1695 Mar 27  1999 mag.pl*
-rwxrwxrwx   1 administ Administ      934 Apr 30 23:50 rs.pl*

I try to execute $perl crash_func.pl

and I get

Can't execute /cygdrive/d/util/scripts/crash_func.pl.

I do a chmod 777 and then I can execute...
Like I said in my previous post this could be complete
"pilot error".

> 
> If you are using the net release 1.1, it would be best if
> you send the output of `getfacl' of the directory and an
> example file.

$ getfacl scripts/
# file: scripts/
# owner: 544
# group: 513
user::rwx
user:500:rwx
group::---
group:18:rwx
mask::---
other::---
default:user::---
default:user:500:---
default:group:18:---
default:mask::---

////////////////

$ getfacl crash_func.pl
# file: crash_func.pl
# owner: 544
# group: 513
user::rwx
user:500:rwx
group::---
group:18:rwx
mask::---
other::---


> No. vim for windows has no relation to the settings which
> are made in cygwin. Typically the permissions are _not_
> set. This has the result that the permissions which are
> set in the parent directory's ACL are used for new files.
> Unfortunately, vim erases the original file and writes the
> changes as a new file. No problem on U*Xish systems (like
> cygwin) but on plain NT.

I read that in their online docs and that's why I tried the different
"fileformat" settings hoping that would fix it.

> 
> Why not trying vim for cygwin? It works as well as the win32
> version, hmm, ok, without mouse support, but who cares?

I don't use the mouse ( why use vi and a mouse??? :)   ) but I 
compile in some ATL code to drive Visual Studio from vim.    

Thanks for answering...

--
B r i a n  S t u r k              E.E. / Software Eng.
http://www.nh.ultranet.com/~bsturk


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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