delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/19/14:34:18

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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Newsgroups: gmane.os.cygwin
Subject: Odd permissions problem
Date: Mon, 19 Aug 2002 11:33:59 -0700
Lines: 39
Message-ID: <3D613A17.30401@Salira.com>
Reply-To: cygwin AT cygwin DOT com
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
X-Trace: main.gmane.org 1029781968 9744 206.184.204.2 (19 Aug 2002 18:32:48 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Mon, 19 Aug 2002 18:32:48 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1
X-Accept-Language: en-us, en

This one has me stumped. Occasionally I get "permission denied" type 
problems when rsh'ing to a machine and creating or updating a file I 
would think I should be able to create or update. I don't understand why 
this happens. So I was playing around trying to categorize it:

$ pwd
/home/adefaria
$ touch foo
$ ls -l foo
-rw-rw-r--    1 adefaria Domain U        0 Aug 19 10:47 foo
$ rm foo

OK, I can touch and create files. Note /home/defaria is actually on a 
server (i.e. I've mounted //<server>/<share> to /home). However if I try 
to do this through rsh

$ rsh $(hostname) touch foo
touch: creating `foo': Permission denied

it fails. Now I am myself:

$ rsh $(hostname) "id && touch file"
uid=1370(adefaria) gid=513(Domain Users) groups=0(Everyone),512(Domain 
Admins),513(Domain 
Users),1170(Everybody),1382(ITSupport),1354(Operations),1331(Software)
touch: creating `foo': Permission denied

Why is this?

Looking over at the Windows security stuff I find 6 entries listed for 
my home directory: Administrators (Full Control), adefaria (Full 
Control), Domain Admins (Full Control), Domain Users (Modify), Everybody 
(Read & Execute) and SYSTEM (Full Control).

If I add write permission to Everybody then this starts working. But why 
should I need to let Everybody write in my home directory in order to 
create files through rsh as me, especially when my own user, who I am 
when I rsh, has Full Control.




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