delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/05/09:42:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 5 Oct 2001 17:37:58 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <19416088393.20011005173758@logos-m.ru>
To: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: chmod/chown + ntsec doesn't work (was OpenSSH and RSA authentication problems)
In-Reply-To: <3BBDB0C8.DA04DAC8@cportcorp.com>
References: <20011003103653 DOT A8662 AT drew DOT edu> <20011003214843 DOT A9463 AT drew DOT edu>
<3BBC9402 DOT 789194A5 AT cportcorp DOT com> <20011004220251 DOT A10846 AT drew DOT edu>
<3BBDB0C8 DOT DA04DAC8 AT cportcorp DOT com>
MIME-Version: 1.0

Hi!

Friday, 05 October, 2001 Peter Buckley peter DOT buckley AT cportcorp DOT com wrote:

PB> I saw one other post that said that you should 
PB> make sure CYGWIN is set to "ntsec" but that doesn't 
PB> necessarily mean that chmod or chown is going to work. 

PB> I tried your example from a bash shell on my system, 
PB> with CYGWIN=binmode tty ntsec. Of course, chmod didn't 
PB> work right. You can see from the following output that 
PB> chmod worked in some cases, and chown definitely 
PB> didn't work. I checked the FAQ, the archives, and the 
PB> documentation, but there seem to only be suggestions 
PB> to "set CYGWIN=ntsec" and "you can't use chmod on 95/98". 

PB> This seems like the root of your SSH problem Dave, I just
PB> wish I knew why chmod didn't work.

chmod shouldn't work as you suppose it have to. try the same commands
on any unix. you'll get the same diagnostics.

PB> /home/pbuckley $ touch example_file
PB> /home/pbuckley $ ls -la example_file
PB> -rw-rw-rw-    1 pbuckley Domain U        0 Oct  5 08:47 example_file
PB> /home/pbuckley $ chown system.system example_file
PB> chown: changing ownership of `example_file': Permission denied

ordinary user can't change object ownership. this is the way the POSIX
works.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


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