www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/08/06:00:29

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
From: letters AT hotpop DOT com (Jari Aalto+list.cygwin)
To: cygwin AT cygwin DOT com
Subject: Re: ssh-host-config suggestion
Keywords: chown,script,ntsec,cygwin
X-Sender-Info: Emacs resources http://tiny-tools.sourceforge.net/
http://poboxes.com/jari.aalto ICQ 'jari-aalto' 82313129
PGP 2.6.x keyid 47141D35 http://www.pgpi.net/
References: <20021106153438 DOT K2180 AT cygbert DOT vinschen DOT de>
<15817 DOT 18485 DOT 56727 DOT 29262 AT jupiter DOT akutech-local DOT de>
<20021106181026 DOT C2180 AT cygbert DOT vinschen DOT de>
Date: Sun, 08 Dec 2002 13:04:04 +0200
In-Reply-To: <20021106181026.C2180@cygbert.vinschen.de> (Corinna Vinschen's
message of "Wed, 6 Nov 2002 18:10:26 +0100")
Message-ID: <1y4spyaj.fsf@blue.sea.net>
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-*-nt5.0.2195)
(i386-*-nt5.0.2195)
MIME-Version: 1.0

* Wed 2002-11-06 Corinna Vinschen <corinna-cygwin AT cygwin DOT com> list.cygwin
* Message-Id: <20021106181026 DOT C2180 AT cygbert DOT vinschen DOT de>
> On Wed, Nov 06, 2002 at 05:49:57PM +0100, Ralf Fassel wrote:
>
>> - the ssh-host-config script should make sure that CYGWIN contains
>>   `ntsec' when trying the chmod/chown steps
>
> That shouldn't be necessary anymore since 1.3.14 sets ntsec by default
> on NT systems.
>
>> - could `chown' be modified to complain if it fails to do the work it
>>   was supposed to do?  It seems that the exit status is 0, and besides
>>   that the script simply does not care about the exit status of chown.
>
> Tricky.  The problem (and the reason the script doesn't test the return
> code) is, there are several conditions for having a working chown.  It
> must be NT/2K/XP, ntsec must be on, FS must be NTFS.  The chown(2) syscall
> returns intentionally always 0 if any of these conditions isn't met.
>
> There could be an additional test in the script after calling chown,
> though...


Why not simply do a "grep" check for permissions found from ls -l 
listing of the /var/empty director?

Jari


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