Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 8 Sep 2002 12:02:28 -0500 From: John Perry To: Volker Quetschke cc: cygwin AT cygwin DOT com Subject: Re: chmod problem In-Reply-To: <3D7B7400.9070702@scytek.de> Message-ID: References: <3D7B7400 DOT 9070702 AT scytek DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT 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 AT jpunix DOT 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/