Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39648
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Knute Johnson <knute2020@585ranch.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: InetAddress.isReachable() ? |
| Date | Sun, 1 Nov 2020 10:30:52 -0600 |
| Organization | A noiseless patient Spider |
| Lines | 30 |
| Message-ID | <rnmnrt$bo9$1@dont-email.me> (permalink) |
| References | <rmv1lf$pmq$1@dont-email.me> <rmv31v$vvl$1@gioia.aioe.org> <rmvnsi$1dn$1@dont-email.me> <rmvsjs$1h20$1@gioia.aioe.org> <rmvt2a$nt2$1@dont-email.me> <rn144s$bq6$1@dont-email.me> <rnf8co$5ph$1@dont-email.me> <rnfrau$1htm$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 1 Nov 2020 16:30:53 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="28e14f893d3025758340e0f32d2c554b"; logging-data="12041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192tlkKKojqMr1iruJrYISj" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
| Cancel-Lock | sha1:ao+4scq4btu1JT8lKxgUCBhPNH0= |
| In-Reply-To | <rnfrau$1htm$1@gioia.aioe.org> |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.java.programmer:39648 |
Show key headers only | View raw
On 10/29/20 8:47 PM, Arne Vajhøj wrote: > On 10/29/2020 4:23 PM, Knute Johnson wrote: >> I'm not sure why Java has the privilege issue with >> InetAddress.isReachable() but it does. > > Someone thought that use of ICMP in Linux should > require privs. > > The ping executable is rws while the java > executable is rwx. > > Arne > > OK, so that got me curious and I checked on my Xubuntu box that I was using when writing this program and found this: /usr/bin$ ls -al ping -rwxr-xr-x 1 root root 72776 Jan 30 2020 ping But then for fun I looked on my RaspberryPi and found: ~ $ ls -al /bin/ping -rwsr-xr-x 1 root root 55720 Jan 13 2020 /bin/ping The Buntus are usually fairly lax in some of their settings but I thought this was interesting. Useless but interesting.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
InetAddress.isReachable() ? Knute Johnson <knute2020@585ranch.com> - 2020-10-23 11:50 -0500
Re: InetAddress.isReachable() ? Arne Vajhøj <arne@vajhoej.dk> - 2020-10-23 13:14 -0400
Re: InetAddress.isReachable() ? Knute Johnson <knute2020@585ranch.com> - 2020-10-23 18:10 -0500
Re: InetAddress.isReachable() ? Arne Vajhøj <arne@vajhoej.dk> - 2020-10-23 20:30 -0400
Re: InetAddress.isReachable() ? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2020-10-23 19:38 -0500
Re: InetAddress.isReachable() ? Martin Gregorie <martin@mydomain.invalid> - 2020-10-24 11:45 +0000
Re: InetAddress.isReachable() ? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2020-10-29 15:23 -0500
Re: InetAddress.isReachable() ? Martin Gregorie <martin@mydomain.invalid> - 2020-10-29 21:36 +0000
Re: InetAddress.isReachable() ? Arne Vajhøj <arne@vajhoej.dk> - 2020-10-29 21:47 -0400
Re: InetAddress.isReachable() ? Knute Johnson <knute2020@585ranch.com> - 2020-11-01 10:30 -0600
csiph-web