delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/22/07:43:11

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: Thu, 22 Aug 2002 13:40:19 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Odd permissions problem
Message-ID: <20020822134019.B26346@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3D613A17 DOT 30401 AT Salira DOT com> <20020820103858 DOT M26346 AT cygbert DOT vinschen DOT de> <3D627A79 DOT 4000101 AT Salira DOT com> <20020821102607 DOT T26346 AT cygbert DOT vinschen DOT de> <3D6401EB DOT 60006 AT Salira DOT com>
Mime-Version: 1.0
In-Reply-To: <3D6401EB.60006@Salira.com>
User-Agent: Mutt/1.3.22.1i

On Wed, Aug 21, 2002 at 02:11:07PM -0700, Andrew DeFaria wrote:
> Corinna Vinschen wrote:
> 
> >Hmm, in theory you shouldn't have access to your home dir under rsh 
> >since it's a share from another machine which isn't available to a 
> >process running under a SYSTEM environment. Except your home dir is 
> >publically available (i. e., no authentication needed).
> >
> Hmmm... I thought, while rshd does run as SYSTEM, etc, that at some 
> point I go from being SYSTEM to being me and as such I should have the 
> rights that my user account has.

It's the usual difference which has already been discussed on this
list.  Login in with password auth -> share access, login w/o password
-> no share access.

> >rsh hostname echo foo > foo
> >
> Hmmm... That works!
> 
> >to check if touch is performing unnecessary tests or an
> >
> >rsh hostname strace touch foo
> >
> Well rsh $(hostname) strace t

Did you rsh using password auth or rhosts auth?  If you used password
auth, the problem is a more general problem and isn't really related
to the authentication method.  The difference between stdio redirection
works and touch doesn't work is weird.  Perhaps an strace of the 
stdio redirection shows you the difference.

Btw., in your strace one can see that it's actually Windows which 
denies access to the file, not Cygwin.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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