This is the mail archive of the
cygwin@cygwin.com
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.4.44.0209080947090.644-100000@elvis.jpunix.com><3D7B7400.9070702@scytek.de>
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
FAT filesystems.
(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:
http://cygwin.com/ml/cygwin/2000-11/msg01176.html.
-> 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 *
perry@ELVIS ~/.gnupg
$ ls -la
total 235
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
stay unchanged.
--
John Perry - perry@jpunix.com
http://www.jpunix.com
http://weather.jpunix.com
--
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/