delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/04/12:45:18

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020204124456.0600c5b8@lnxmain>
X-Sender: roland AT lnxmain
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 04 Feb 2002 12:45:03 -0500
To: cygwin AT cygwin DOT com
From: Roland Glenn McIntosh <roland AT steeltorch DOT com>
Subject: Re: chmod in cygwin
Mime-Version: 1.0

It's my understanding that whether a file is executable or not in cygwin is determined by the following:

- file extension (.com, .bat, .exe)
- the first line of the file (#!/bin/bash)

I know of no other conditions which would make a file executable in cygwin, but if there were, it would be along those lines.

-rgm

At 09:33 AM 02.04.2002 -0800, you wrote:

>I hope this isn't a stupid question. When I try to use chmod, it doesn't do what I expect.
>See below. Am I doing something wrong? I'm running Windows NT 4.0 sp6. I've tried with Windows 2000 with same results.
>
>Thanks
>-John
>
>
>administrator AT WASHINGTON /test
>$ ls -l
>total 1
>-rw-r--r--   1 administ None           17 Feb  4 08:43 test
>-rw-r--r--   1 administ None           26 Feb  4 08:32 test2
>
>administrator AT WASHINGTON /test
>$ chmod -v 777 test2
>mode of test2 changed to 0777 (rwxrwxrwx)
>
>administrator AT WASHINGTON /test
>$ ls -l
>total 1
>-rw-r--r--   1 administ None           17 Feb  4 08:43 test
>-rw-r--r--   1 administ None           26 Feb  4 08:32 test2
>
>administrator AT WASHINGTON /test
>$
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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