delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/18/07:01:58

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C70ECE7.FBF1A203@hack.kampbjorn.com>
Date: Mon, 18 Feb 2002 13:00:39 +0100
From: Hack =?iso-8859-1?Q?Kampbj=F8rn?= <cygwin AT hack DOT kampbjorn DOT com>
Reply-To: cygwin AT cygwin DOT com
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,da,es,ca
MIME-Version: 1.0
To: axellec AT netcourrier DOT com
CC: cygwin AT cygwin DOT com
Subject: Re: Can't obtain write permissions on my file...
References: <20020218103540 DOT 83411 DOT qmail AT web10301 DOT mail DOT yahoo DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g1IC1vO14908

Axelle Apvrille wrote:
> 
> Hi,
> I've got a problem concerning file permissions between
> CygWin/Windows and Unix.
> 
> 1. I've checked-out a file on a Unix server (my login
> is axelle):
> colibri{axelle}[/home/axelle/papers]> ls -al
> total 160
> drwx--x--x   3 axelle  nss          512 Feb 15 16:58
> ./
> drwx--x--x   9 axelle  nss          512 Feb 11 17:12
> ../
> drwx--x--x   2 axelle  nss          512 Feb 15 15:23
> CVS/
> -rwx-wx--x   1 axelle  nss         7995 Feb 15 16:58
> isse-xml.tex*
> => I've got read & write access to my file
> isse-xml.tex.
> 
> 2. and then try to access it from Windows, using
> Cygwin.
> {Administrator}[/e/axelle/papers]> ls -al
> total 77
> drwxr-xr-x   1 Administ None            0 Feb 15 16:58
> .
> drwxr-xr-x   1 Administ None            0 Feb 11 17:12
> ..
> drwxr-xr-x   1 Administ None            0 Feb 15 15:23
> CVS
> -rw-r--r--   1 Administ None         7995 Feb 15 16:58
> isse-xml.tex
> {Administrator}[/e/axelle/papers]> id
> uid=500(Administrator) gid=513(None) groups=513(None)

Check the User Guide:
http://cygwin.com/cygwin-ug-net/ntsec.html
Specially the part about not wanting to be 'None':
Unfortunately, workstations and servers outside of domains are not able
to set primary groups! In these cases, where there is no correlation of
users to primary groups, NT returns 513 (None) as primary group,
regardless of the membership to existing local groups.

when using mkpasswd -l -g on such systems, you have to change the
primary group by hand if `None' as primary group is not what you want
(and I'm sure, it's not what you want!)

Solution:
edit your /etc/passwd and change your primary group to 544
(Administrators)

> => Okay so I'm Administrator, the permission access

Wrong, you're nobody 8-(

> rights are rw-r--r-- : so I should have read & write
> access to my file ?
> => BUT When I load the file through Emacs, it's
> non-writable ! Why ?
> 
> If I check-out the file directly through Cygwin, then
> I have read & write access..
> 
> What's happening ? How can I solve that problem ?
> Thanks,
> -------------------------------------------------------
> 
> Axelle Apvrille

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn

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