Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Wed, 21 Aug 2002 10:26:07 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Odd permissions problem Message-ID: <20020821102607.T26346@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D627A79.4000101@Salira.com> User-Agent: Mutt/1.3.22.1i On Tue, Aug 20, 2002 at 10:20:57AM -0700, Andrew DeFaria wrote: > Corinna Vinschen wrote: > > >On Mon, Aug 19, 2002 at 11:33:59AM -0700, Andrew DeFaria wrote: > > > >>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 /// 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? > > > > > >Does `rsh hostname ls' actually list the files in your home dir? > > Yes: > > $ rsh $(hostname) ls -l > total 19341 > [...] 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). I don't understand what you're doing, probably. Do you rsh to the same machine as you're doing the first `pwd' on? Or do you rsh to the server which provides your home dir? Did you try e. g. an rsh hostname echo foo > foo to check if touch is performing unnecessary tests or an rsh hostname strace touch foo to look into the strace what happens? 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/