delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/29/06:36:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: Fri, 29 Apr 2005 12:35:55 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.16-1: chmod problem
Message-ID: <20050429103555.GU2572@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <C833F6C0EF3DD24DA46FADF0A87466931EA037 AT fe-mail18 DOT de DOT bosch DOT com>
Mime-Version: 1.0
In-Reply-To: <C833F6C0EF3DD24DA46FADF0A87466931EA037@fe-mail18.de.bosch.com>
User-Agent: Mutt/1.4.2i

On Apr 28 14:40, Pach Roman (GS-EC/ESA4) * wrote:
> Hello,
> the following commands run properly on the c:/drive
>  
> c> touch yahoo
> c> ls -l yahoo
>    -rw-rw-rw-  1 ropach mkpasswd 0 Apr 28 13:54 yahoo
>  
> c> chmod -w yahoo
> c> ls -l yahoo
>    -r--r--r--  1 ropach mkpasswd 0 Apr 28 13:54 yahoo
>  
> but if I try it on the u:/ drive connected over net the following error comes
> 
> u> ls -l yahoo
>    -rw-r--r--  1 ropach mkpasswd 0 Apr 28 13:50 yahoo
> u> chmod -w yahoo
>    chmod: changing permissions of `yahoo': Permission denied
> 
> There were no problems up to the version cygwin-1.5.13-1.
> The error on my machine is new for the following two versions
>   cygwin-1.5.15-1
>   cygwin-1.5.16-1

I can't reproduce your problem.  I tried to setup my environment similary,
but it works fine for me.  I guess we need you to examine the situation
further and, if nothing helps, strace output of this chmod.


However, a few hints to your settings:

> Output from c:\unix\bin\id.exe (nontsec)
> UID: 400(ropach)    GID: 401(mkpasswd)
> 544(Administrators) 547(Power Users)    545(Users)          401(mkpasswd)
> 
> Output from c:\unix\bin\id.exe (ntsec)
> UID: 400(ropach)    GID: 401(mkpasswd)
> 544(Administrators) 547(Power Users)    545(Users)          401(mkpasswd)

You don't have /etc/passwd nor /etc/group set up correctly.
Use mkpasswd/mkgroup.

> CYGWIN = `textmode'

Urgh, you're a masochist, apparently.

> HOME = `u:\'

Don't do this.  $HOME is not used by Windows, only by Cygwin.  Set it to
a POSIX path (e.g. '/cygdrive/u'), not a Win32 path.  Or let Cygwin do it
by itself.

> TEMP = `C:\DOCUME~1\ropach\LOCALS~1\Temp'
> TERM = `cygwin'
> TMP = `C:\DOCUME~1\ropach\LOCALS~1\Temp'

TMP should probably better be a POSIX path, too.


Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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