This is the mail archive of the
mailing list for the Cygwin project.
Re: chmod problem
- From: John Perry <perry at jpunix dot com>
- To: Volker Quetschke <quetschke at scytek dot de>
- Cc: cygwin at cygwin dot com
- Date: Sun, 8 Sep 2002 12:02:28 -0500
- Subject: Re: chmod problem
- References: <Pine.CYG.firstname.lastname@example.org><3D7B7400.email@example.com>
On Sun, 8 Sep 2002, Volker Quetschke wrote:
-> Err, in which FAQ is this written? Just try chmod, it works!
>From the FAQ:
Why doesn't chmod work?
`ntsec' will allow UNIX permissions in Windows NT on NTFS file systems.
`ntea' works on NTFS and FAT but it creates a huge, undeletable file on
(The `ntsec' and `ntea' settings are values for the `CYGWIN' environment
variable. See the Cygwin User's Guide at
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html for more information on
this variable and its settings.)
There is no solution at all for Windows 9x.
If you have an application that requires a certain permission mode on a
file, you may be able to work around this requirement by modifying the
application's source code. For a hint, based on work done by Corinna
Vinschen for OpenSSH, see this message from the cygwin mailing list:
-> As I said, use chmod. I am using gnupg on a win2k system.
I tried using chmod. Although I get no errors and in verbose mode it says
the permissions are changed, a "ls -al" shows:
$ chmod 600 *
$ ls -la
drwxr-xr-x 2 perry None 4096 Sep 8 09:46 .
drwxr-xr-x 7 perry None 8192 Sep 8 11:58 ..
-rw-r--r-- 1 perry None 7793 Sep 8 09:41 options
-rw-r--r-- 1 perry None 99956 Sep 8 09:37 pubring.gpg
-rw-r--r-- 1 perry None 99872 Sep 8 09:22 pubring.gpg~
-rw-r--r-- 1 perry None 600 Sep 8 09:37 random_seed
-rw-r--r-- 1 perry None 16225 Sep 8 09:14 secring.gpg
-rw-r--r-- 1 perry None 1760 Sep 8 09:46 trustdb.gpg
So although the command thinks it was successful, the permissions still
John Perry - firstname.lastname@example.org
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html