Mail Archives: cygwin/2002/12/10/11:33:05
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 -