This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.5.16-1: chmod problem


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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]