Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020218123532.97815.qmail@web10301.mail.yahoo.com> Date: Mon, 18 Feb 2002 13:35:32 +0100 (CET) From: =?iso-8859-1?q?Axelle=20Apvrille?= Reply-To: axellec AT netcourrier DOT com Subject: Re: Can't obtain write permissions on my file... To: cygwin AT cygwin DOT com In-Reply-To: <3C70ECE7.FBF1A203@hack.kampbjorn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Thanks for your answer. But the problem I have does not concern group ids, but user ids (or so I believe). I have made the fix you suggested. Okay so now, my group id is no longer "None" but "Administrators". I have : > ls -al total 108 drwxr-xr-x 1 Administ Administ 0 Feb 18 11:37 . drwxr-xr-x 1 Administ Administ 0 Feb 11 17:12 .. drwxr-xr-x 1 Administ Administ 0 Feb 15 15:23 CVS -rw-r--r-- 1 Administ Administ 8008 Feb 18 11:27 isse-xml.tex > id uid=500(Administrator) gid=544(Administrators) groups=544(Administrators) > emacs isse-xml.tex & => When emacs is loaded, he tells me I can't write over isse-xml.tex... I'm administrator: rights are rw-r--r--. So I should have rw- access on the file ! Why can't I write on it ? --- Hack Kampbjørn a écrit : > 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 ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- 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/