delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/18/10:52:20

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: <17B78BDF120BD411B70100500422FC6309E48C@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'axellec AT netcourrier DOT com'" <axellec AT netcourrier DOT com>, cygwin AT cygwin DOT com
Subject: RE: Can't obtain write permissions on my file...
Date: Mon, 18 Feb 2002 16:36:38 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

> -----Original Message-----
> From: Axelle Apvrille [mailto:axelle_apvrille AT yahoo DOT fr]
> Sent: Monday, February 18, 2002 11:36 AM
> To: cygwin AT cygwin DOT com
> Subject: Can't obtain write permissions on my file...
> 
> 
> 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)
> => Okay so I'm Administrator, the permission access
> 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 ?
> 

Let me guess a bit (because I've had the same issue myself): You're on an NT
workstation, with an NTFS filesystem, in an NT domain, and you as an NT user
are local administrator of your workstation? Furthermore you have set
"CYGWIN=ntsec"?

If that's the case be sure your /etc/passwd and /etc/group files are set up
properly, that is by:

mkpasswd -d > /etc/passwd
mkgroup -d > /etc/group

(as is indicated in the User Guide at
http://cygwin.com/cygwin-ug-net/ntsec.html). Then quit cygwin and restart
it. This should have two effects:
1) you will no more get Administrator in your prompt, but your NT user name
2) you will be able to access your files correctly

Oh, but wait a minute; if I understand correctly what you've said, you
should be using a samba share between your Linux box and your Windows
system, with a windows mount of th esamba share as drive E:?

Then the problem may also be (in addition to the above) that your samba
server is not correctly configured to match your NT user name with your
Linux login. Then it may be samba that refuse the access (although in this
case you should not be able to create new files on the share also).

Please could you be more explicit on the exact setting of your system, as
here there is several piece of software that are interacting and any one can
be the cause of the problem.

HTH

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
-------------------------------------------- 

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