This is the mail archive of the cygwin@cygwin.com 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: Can't obtain write permissions on my file...


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


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