Bugtraq mailing list archives

Re: Linux rcp bug


From: Thomas.Roessler () SOBOLEV RHEIN DE (Thomas Roessler)
Date: Tue, 4 Feb 1997 10:25:57 GMT


In article <Pine.GSO.3.95q.970203205902.9134A-100000 () piglet cc utexas edu>, Miroslav Pikus wrote:

[nobody@slip-70-8 /]$ id
uid=65535(nobody) gid=65535
[nobody@slip-70-8 /]$ rcp oberheim () moe cc utexas edu:brb /tmp/test
[nobody@slip-70-8 /]$ ls -la /tmp/test
-rw-------   1 root     65535           0 Jan 29 11:20 /tmp/test

This is an old and well-known problem.  65535 equals -1 mod 2^16 which, in
fact, says it all:  Passing -1 as an argument to chown(), chgrp(), set*uid()
and several other system calls will leave the value in question unchanged.

tlr
--
Thomas Roessler                           http://home.pages.de/~roessler/



Current thread: