delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/08/13:02:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <perry AT jpunix DOT com>
To: Volker Quetschke <quetschke AT scytek DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: chmod problem
In-Reply-To: <3D7B7400.9070702@scytek.de>
Message-ID: <Pine.CYG.4.44.0209081158160.2288-100000@elvis.jpunix.com>
References: <Pine DOT CYG DOT 4 DOT 44 DOT 0209080947090 DOT 644-100000 AT elvis DOT jpunix DOT com>
<3D7B7400 DOT 9070702 AT scytek DOT de>
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019