delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/15/16:38:06

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
Message-ID: <3DD56926.4040207@csgsystems.com>
Date: Fri, 15 Nov 2002 22:37:42 +0100
From: Christian Mueller <Christian_Mueller AT csgsystems DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: .rhosts on W2K w/o ntsec
X-Scanned-By: MIMEDefang 2.15 (www dot roaringpenguin dot com slash mimedefang)

Hi,

after updating to the latest version of Cygwin (1.3.15-1) including 
all other modules, rshd wouldn't accept my .rhosts file anymore 
because it's owned by the wrong owner. The error message is 
"permission denied (bad .rhosts owner)."

The reason for this is obvious: I turned off ntsec, thus the .rhosts 
file is owned by whoever starts rshd (probably SYSTEM because I run it 
as a service). I'm running Cygwin on W2K/NTFS; my CYGWIN environment 
variable is "ntea nontsec".

Would it be possible to add something to the CYGWIN environment 
variable which prevents 'ruserok()' from verifying the owner of the 
.rhosts file? Or, even better, would it be possible to store the 
file's owner and group in the extended attributes as well and use this 
in case ntsec is turned off?

The reasons why I don't want to use ntsec are:

- I'm running Cygwin on a laptop and have to be part of the 
administrative group in order to prevent closing down everything to 
login as Administrator every time I plugin to client networks, etc. 
The "Run as..." option in W2K is only covering half of the issues I'm 
coming across. As a result, all Windows files are created with the 
admin group as owner while Cygwin creates files with my login as owner.

- I'm sharing the home directory between Cygwin and Windows 
applications and Windows applications create new files with rather 
stupid permissions when inheritance is turned off (as is the case with 
Cygwing directories with ntsec turned on)

When I forget to re-set the owner and permissions settings before 
running "cvs commits" or similar, the chaos is complete....

Cheers,
--Christian


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