public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sebastien Barre <Sebastien.Barre@utc.fr>
To: Charles Wilson <cwilson@ee.gatech.edu>
Cc: cygwin@sourceware.cygnus.com
Subject: 'ntea' CHECK please (was Re: Compiling Perl)
Date: Mon, 08 Mar 1999 05:43:00 -0000	[thread overview]
Message-ID: <4.1.19990308114049.016bde90@mail.club-internet.fr> (raw)
In-Reply-To: < 36E37A18.A15F8524@ece.gatech.edu >

Charles Wilson and I are still fighting with Perl. Some of you pointed me
the fact that adding 'ntea' to CYGWIN could solve some file permissions
problems. True.

Here is a short test (ntea is set). I just want to be sure if these are
KNOWN bugs :


*) First, some stuff about groups and username (as it is might not be
obvious fro you with french names) :

administrateur [541] /tmp$ cat /etc/passwd
Administrateur::500:513:seb::/bin/sh
InvitÚ::501:513:::/bin/sh
Test::1000:513:Yoh::/bin/sh

administrateur [542] /tmp$ cat /etc/group
Aucun::513:
Everyone::0:

=> 'Aucun' means 'None', 'InvitÚ' is 'Guest', 'Administrateur' is... well
you guessed it.


*) Let's create a file

administrateur [544] /tmp$ touch foo
administrateur [545] /tmp$ ll foo
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [546] /tmp$ perl -e 'print "yes\n" if -w "foo";'
yes

=> all right, it's writable (perl will display 'yes' if the -w test
succeeds), this is working right because I'm using 'ntea'.
=> that file does NOT belong to me, due to the known NT'ism, it belongs to
the UID of the Administrator group (544).


*) Let's create a directory (which is a kind of file)

administrateur [547] /tmp$ mkdir bar
administrateur [549] /tmp$ ll
total 0
drwxr-xr-x   2 544      Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [550] /tmp$ perl -e 'print "yes\n" if -w "bar";'

=> *ugh*, 'bar' is NOT writable. Why ? I do not know. Here is a first
problem I'd like to clarify (is it a known bug)
=> that file does NOT belong to me (like foo), due to the known NT'ism, it
belongs to the UID of the Administrator group (544).


*) Let's try to chmod the directory :

administrateur [551] /tmp$ chmod a+w bar
administrateur [552] /tmp$ ll
total 0
drwxr-xr-x   2 544      Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo

=> No change.


*) Let's change the ownership to my ID (administrateur) :

administrateur [554] /tmp$ chown administrateur bar
administrateur [555] /tmp$ ll
total 0
drwxr-xr-x   2 administ Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [556] /tmp$ perl -e 'print "yes\n" if -w "bar";'
yes

=> Now it's writable...
=> Do I have to do this for every directory I'll have to create ?

Thanks


______________________________________________________________
Sebastien Barre                  http://www.hds.utc.fr/~barre/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Sebastien Barre <Sebastien.Barre@utc.fr>
To: Charles Wilson <cwilson@ee.gatech.edu>
Cc: cygwin@sourceware.cygnus.com
Subject: 'ntea' CHECK please (was Re: Compiling Perl)
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <4.1.19990308114049.016bde90@mail.club-internet.fr> (raw)
Message-ID: <19990331194500.xSRA9iPYGDhWWkc3H_1X57xsxUM5SJXWL9VxBi0ZpmM@z> (raw)
In-Reply-To: <36E37A18.A15F8524@ece.gatech.edu>

Charles Wilson and I are still fighting with Perl. Some of you pointed me
the fact that adding 'ntea' to CYGWIN could solve some file permissions
problems. True.

Here is a short test (ntea is set). I just want to be sure if these are
KNOWN bugs :


*) First, some stuff about groups and username (as it is might not be
obvious fro you with french names) :

administrateur [541] /tmp$ cat /etc/passwd
Administrateur::500:513:seb::/bin/sh
InvitÚ::501:513:::/bin/sh
Test::1000:513:Yoh::/bin/sh

administrateur [542] /tmp$ cat /etc/group
Aucun::513:
Everyone::0:

=> 'Aucun' means 'None', 'InvitÚ' is 'Guest', 'Administrateur' is... well
you guessed it.


*) Let's create a file

administrateur [544] /tmp$ touch foo
administrateur [545] /tmp$ ll foo
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [546] /tmp$ perl -e 'print "yes\n" if -w "foo";'
yes

=> all right, it's writable (perl will display 'yes' if the -w test
succeeds), this is working right because I'm using 'ntea'.
=> that file does NOT belong to me, due to the known NT'ism, it belongs to
the UID of the Administrator group (544).


*) Let's create a directory (which is a kind of file)

administrateur [547] /tmp$ mkdir bar
administrateur [549] /tmp$ ll
total 0
drwxr-xr-x   2 544      Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [550] /tmp$ perl -e 'print "yes\n" if -w "bar";'

=> *ugh*, 'bar' is NOT writable. Why ? I do not know. Here is a first
problem I'd like to clarify (is it a known bug)
=> that file does NOT belong to me (like foo), due to the known NT'ism, it
belongs to the UID of the Administrator group (544).


*) Let's try to chmod the directory :

administrateur [551] /tmp$ chmod a+w bar
administrateur [552] /tmp$ ll
total 0
drwxr-xr-x   2 544      Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo

=> No change.


*) Let's change the ownership to my ID (administrateur) :

administrateur [554] /tmp$ chown administrateur bar
administrateur [555] /tmp$ ll
total 0
drwxr-xr-x   2 administ Aucun           0 Mar  8 12:44 bar/
-rw-rw-rw-   1 544      Aucun           0 Mar  8 12:43 foo
administrateur [556] /tmp$ perl -e 'print "yes\n" if -w "bar";'
yes

=> Now it's writable...
=> Do I have to do this for every directory I'll have to create ?

Thanks


______________________________________________________________
Sebastien Barre                  http://www.hds.utc.fr/~barre/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


  parent reply	other threads:[~1999-03-08  5:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-06 10:41 Compiling Perl under b20.1 Earnie Boyd
1999-03-06 12:07 ` Charles Wilson
     [not found]   ` < 36E18AF6.A967D7DA@ece.gatech.edu >
1999-03-07 15:33     ` Sebastien Barre
1999-03-07 23:19       ` Charles Wilson
     [not found]         ` < 36E37A18.A15F8524@ece.gatech.edu >
1999-03-08  5:43           ` Sebastien Barre [this message]
1999-03-31 19:45             ` 'ntea' CHECK please (was Re: Compiling Perl) Sebastien Barre
1999-03-08  5:43           ` Compiling Perl under b20.1 Sebastien Barre
1999-03-31 19:45             ` Sebastien Barre
1999-03-31 19:45         ` Charles Wilson
1999-03-08  0:07       ` Charles Wilson
     [not found]         ` < 36E38547.482A019A@ece.gatech.edu >
1999-03-08  5:43           ` Sebastien Barre
1999-03-31 19:45             ` Sebastien Barre
1999-03-31 19:45         ` Charles Wilson
1999-03-31 19:45       ` Sebastien Barre
1999-03-31 19:45   ` Charles Wilson
1999-03-31 19:45 ` Earnie Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.1.19990308114049.016bde90@mail.club-internet.fr \
    --to=sebastien.barre@utc.fr \
    --cc=cwilson@ee.gatech.edu \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).