public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can't obtain write permissions on my file...
@ 2002-02-18  2:35 Axelle Apvrille
  2002-02-18  4:00 ` Hack Kampbjørn
  0 siblings, 1 reply; 12+ messages in thread
From: Axelle Apvrille @ 2002-02-18  2:35 UTC (permalink / raw)
  To: cygwin

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 ?

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 


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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Can't obtain write permissions on my file...
@ 2002-02-18 10:14 Robinow, David
  2002-02-19  0:54 ` Axelle Apvrille
  0 siblings, 1 reply; 12+ messages in thread
From: Robinow, David @ 2002-02-18 10:14 UTC (permalink / raw)
  To: cygwin

> > If I log on the Unix machine, check out my file, then
> > go to my NT machine and try to modify it using Emacs,
> > Emacs complains it is unwritable (though Cygwin shows
> > I have rw- access, and if I right click on the file on
> > Win2000, the read-only check box is not checked).
> > As a matter of fact, I can write on the file: tried
> > the touch command or an echo >> my file.
  Would somebody explain what this problem has to do with cygwin?  I must be
missing something.

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Can't obtain write permissions on my file...
@ 2002-02-18  9:57 Bernard Dautrevaux
  2002-02-19  0:49 ` Axelle Apvrille
  2002-02-19  1:23 ` Axelle Apvrille
  0 siblings, 2 replies; 12+ messages in thread
From: Bernard Dautrevaux @ 2002-02-18  9:57 UTC (permalink / raw)
  To: 'axellec@netcourrier.com'; +Cc: cygwin

> -----Original Message-----
> From: Axelle Apvrille [mailto:axelle_apvrille@yahoo.fr]
> Sent: Monday, February 18, 2002 5:35 PM
> To: Bernard Dautrevaux
> Subject: RE: Can't obtain write permissions on my file...
> 
> 
> Hi,
> Here's some clarification.
> I've got both an "NT" account (actually I'm on Windows
> 2000, not NT) -- with an NTFS filesystem, and a Unix
> account. 
> I log onto the NT domain as "axelle", and I'm local
> administrator of my machine. (My NT account is in the
> Local Administrator group).
> On Unix machines, I log as "axelle" (but the NT axelle
> and the Unix axelle account have no link -- except
> that it's me in both cases ;-)).
> From Windows, I access to my Unix account through a
> Samba share.
> 
> If I log on the Unix machine, check out my file, then
> go to my NT machine and try to modify it using Emacs,
> Emacs complains it is unwritable (though Cygwin shows
> I have rw- access, and if I right click on the file on
> Win2000, the read-only check box is not checked).
> As a matter of fact, I can write on the file: tried
> the touch command or an echo >> my file.

So it seems that is linked to emacs; can you read/write your file under
another editor (like vi)? just to confirm it's really an Emacs problem.

> 
> If on the contrary, I log on to my Windows machine,
> check out the file, then go to Unix, no problem at
> all. It works.
> 
> > "CYGWIN=ntsec"?
> Where would that command be ?
> Is that a environment variable ? (I've got CYGWIN=tty
> !).

Yes, this is an environment variable that can be set either in the
workstation properties dialog, or in th ecygwin.bat script (but not after:
it must be set BEFORE the first cygwin program starts).

> 
> > 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
> 
> I've done that.
> 
> > 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:?
> 
> Yes, that's right (except I'm accessing a Solaris not
> a Linux -- but I doubt that the pb !).

Me too, although nobody really knows as long as the real problem is not
fixed :-)

> 
> > 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.
> 
> I don't think so, because Samba is configured so I
> access all my user account without problems.
> 
> 
> > Then it may be samba that refuse the
> > access
> 
> No. See above, I have access to the file. And better,
> I can overwrite it if I use simple commands, not
> Emacs.
> Maybe Emacs does not understand who I am.

It's one of th ethings I would investigate, especially as Emacs seems to
quite often play tricks with the OS in order to be smarter :-)

> Or CVS gets confused.

Not sure it is CVS, but you may create a file manually on Unix, then try to
edit it under Emacs from Windows; if it works, then maybe CVS has set-up the
file properties on UNIX strangely. BTW IIRC Solaris handles not only
traditional Unix attributes (the usual -rw--r--r stuff) but also ACLs
(access control lists). If these are enabled on your Solaris box, you should
definitely check the rights set by CVS for the problematic file and compare
with one you can edit from Emacs on Windows.

> Or something's missing in my Cygwin configuration.
> 
> Hope this helps you helping me ;-)
> Thanks anyway !

You're welcome,

	Bernard

PS: Please keep these kind of discussion on the list; the various mails may
trigger ideas from others on the list that may finally discover the (perhaps
totally unrelated) cause to your problem, or to a problem of someone else
:-)

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Can't obtain write permissions on my file...
@ 2002-02-18  7:48 Bernard Dautrevaux
  0 siblings, 0 replies; 12+ messages in thread
From: Bernard Dautrevaux @ 2002-02-18  7:48 UTC (permalink / raw)
  To: 'axellec@netcourrier.com', cygwin

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Can't obtain write permissions on my file...
@ 2002-02-18  2:29 axellec
  0 siblings, 0 replies; 12+ messages in thread
From: axellec @ 2002-02-18  2:29 UTC (permalink / raw)
  To: cygwin

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 ?

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 

-------------------------------
Axelle Apvrille
mailto:axellec@netcourrier.com
-------------------------------

----------------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-02-19  9:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-18  2:35 Can't obtain write permissions on my file Axelle Apvrille
2002-02-18  4:00 ` Hack Kampbjørn
2002-02-18  4:35   ` Axelle Apvrille
2002-02-18  5:03     ` Hack Kampbjørn
2002-02-18  7:14       ` Axelle Apvrille
  -- strict thread matches above, loose matches on Subject: below --
2002-02-18 10:14 Robinow, David
2002-02-19  0:54 ` Axelle Apvrille
2002-02-18  9:57 Bernard Dautrevaux
2002-02-19  0:49 ` Axelle Apvrille
2002-02-19  1:23 ` Axelle Apvrille
2002-02-18  7:48 Bernard Dautrevaux
2002-02-18  2:29 axellec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).