delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/10/11:33:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Kris Thielemans" <kris DOT thielemans AT csc DOT mrc DOT ac DOT uk>
To: "Gnuwin" <cygwin AT cygwin DOT com>
Subject: RE: ntsec and remote copy
Date: Tue, 10 Dec 2002 16:26:00 -0000
Message-ID: <NBBBKKHEOHOEPNCALMIGGEMNDIAA.kris.thielemans@ic.ac.uk>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <NBBBKKHEOHOEPNCALMIGMEMLDIAA.kris.thielemans@ic.ac.uk>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Oh yes,
a related remark.

On the file with the funny UID, some things work, some don't. For instance,
I can vi it, but I cannot write it. This seems to say that some cygwin
programs call this file readable, but others don't... Bearing in mind the
premissions that it is said to, I would actually claim that I should NOT be
able to read it.

Here's an illustration of 'test' that cannot read it.

$ ls -l test.txt
-rwx------+   1 65535    None         1003 Dec 10 00:24 test.txt

$ if [ -r test.txt ]; then echo 'I can read it'; else echo 'I cannot read
it';
fi
I cannot read it

$ chown kris test.txt

$ ls -l test.txt
-rwx------    1 kris     None         1003 Dec 10 00:24 test.txt

$ if [ -r test.txt ]; then echo 'I can read it'; else echo 'I cannot read
it';
fi
I can read it


I also see now that not only files copied remotely have this strang eUID,
but others as well (maybe older files?)

Kris
> -----Original Message-----
> From: Kris Thielemans [mailto:kris DOT thielemans AT csc DOT mrc DOT ac DOT uk]
> Sent: 10 December 2002 14:03
> To: Gnuwin
> Cc: Kris Thielemans
> Subject: ntsec and remote copy
>
>
> Hi,
>
> I have a problem with ntsec I think.
> I copied files from a remote disk (a Windows NT server) using the
> explorer.
> These files are then set to the following UID:
>
> ls -l test.txt
> -rwx------    1 65535    None         1225 Dec 10 11:30 test.txt
>
> If I create a file locally myself, I nicely get
> -rw-rw-rw-    1 kris     None         1230 Dec 10 13:46 local.txt
>
> and the same nice UID when I use bash and cp to copy the remote file. It's
> also fine when I do an 'ls -l' of the remote file by the way.
>
> So, where does cygwin get that funny UID (and permissions) from?
>
> cygcheck.out attached.
>
> Thanks
>
> Kris Thielemans
> (kris.thielemans <at> ic.ac.uk)
> Imaging Research Solutions Ltd
> Cyclotron Building
> Hammersmith Hospital
> Du Cane Road
> London W12 ONN, United Kingdom
>
> web site address: http://www.irsl.org/~kris
>
>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019