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


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 <cygwin@hack.kampbjorn.com> 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/


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