chmod in cygwin
Roland Glenn McIntosh
roland@steeltorch.com
Mon Feb 4 09:44:00 GMT 2002
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@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@WASHINGTON /test
>$ chmod -v 777 test2
>mode of test2 changed to 0777 (rwxrwxrwx)
>
>administrator@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@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/
More information about the Cygwin
mailing list