This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chmod problem

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 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 *

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 -

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]