[Lazarus] root privileg

Michael Van Canneyt michael at freepascal.org
Wed Jun 4 17:19:11 CEST 2014



On Wed, 4 Jun 2014, Reinier Olislagers wrote:

> On 04/06/2014 17:11, Michael Van Canneyt wrote:
>>
>>
>> On Wed, 4 Jun 2014, Reinier Olislagers wrote:
>>
>>> On 04/06/2014 16:54, Michael Van Canneyt wrote:
>>> Why do you need root to ping?
>>
>> All ports less than 1024 are only usable by the root user.
>
> By defautl, perhaps. See the rest of my post.
>
> Otherwise, how do you explain this (Debian):
> pascaldev at debianlaz:~/papertiger$ whoami
> pascaldev
> pascaldev at debianlaz:~/papertiger$ ping www.freepascal.org
> PING www.freepascal.org (81.82.199.218) 56(84) bytes of data.
> 64 bytes from d5152C7DA.static.telenet.be (81.82.199.218): icmp_seq=1
> ttl=51 time=21.5 ms

Ts ts ts

home: >which ping
/bin/ping
home: >ls -l /bin/ping
-rwsr-xr-x 1 root root 35712 Nov  8  2011 /bin/ping*

ping is setuid root.

Michael.




More information about the Lazarus mailing list