From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17258 invoked by alias); 18 Feb 2002 15:48:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 17173 invoked from network); 18 Feb 2002 15:48:01 -0000 Received: from unknown (HELO iis000.microdata.fr) (194.206.157.151) by sources.redhat.com with SMTP; 18 Feb 2002 15:48:01 -0000 Received: by IIS000 with Internet Mail Service (5.5.2653.19) id ; Mon, 18 Feb 2002 16:37:11 +0100 Message-ID: <17B78BDF120BD411B70100500422FC6309E48C@IIS000> From: Bernard Dautrevaux To: "'axellec@netcourrier.com'" , cygwin@cygwin.com Subject: RE: Can't obtain write permissions on my file... Date: Mon, 18 Feb 2002 07:48:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-02/txt/msg00868.txt.bz2 > -----Original Message----- > From: Axelle Apvrille [mailto:axelle_apvrille@yahoo.fr] > Sent: Monday, February 18, 2002 11:36 AM > To: cygwin@cygwin.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@microprocess.com b.dautrevaux@usa.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/