On Wed, 12 Aug 2015, Piotr Polok wrote:

W dniu 2015-08-12 14:56, Lukas Gebauer napisaƂ(a):
It is worst! You need rights for RAW socket.

Similar situation is on Windows too, but Windows publish special API
for sending ping by non-admin users. Synapse can use it. But on Linux
I not know any special API.

Synapse documentation says:

Warning: For use of RAW sockets you must have some special rights on
some systems. So, it working allways when you have administator/root
rights. Otherwise you can have problems!

Thank you for the reply,

I do not fully understand the situation, I just move code from Kylix do Lazarus and it stop to work, also i'm able to ping from user shell command ... ?

The ping command is setuid root, so it executes as root:

ls -l /bin/ping
-rwsr-xr-x 1 root root 44168 May  7  2014 /bin/ping*

How it can work in kylix is beyond me, unless the kylix binary was setuid root 
as well.

Michael.
------------------------------------------------------------------------------
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to