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!  

> That's because on Linux you must be root to send ping packets for
> users not to flood hosts with ping packets. It is a security thing.
> You can not bind to a port below 1024 as a normal user. 
> 
> -------- Original message --------
> From: Piotr Polok <piotr.po...@polok.pl> 
> Date: 11/08/2015  23:22  (GMT+02:00) 
> To: Ararat Synapse <synalist-public@lists.sourceforge.net> 
> Subject: [Synalist] Synapse in Lazarus on Linux with user privileges
> not   working. 
> 
> Hi,
> 
> when I start Lazarus IDE from root account the PingSend.PingHost(host)
> works properly, but when I start Lazarus IDE from user account the
> PingSend.PingHost(host) gives all the time '-1' result.
> 
> Lazarus version: 1.4.2
> FPC, FPC-SRC version: 2.6.4
> Synapse version: 40
> OS: Debina 8.1 on Oracle VM
> 
> please help in solving this problem.
> Piort Polok
> 
> ----------------------------------------------------------------------
> -------- _______________________________________________
> synalist-public mailing list synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public



-- 
Lukas Gebauer.

http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution


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

Reply via email to