Jump to content

unable to ping as user


jamezg

Recommended Posts

can not ping as user,  pinging as root works.

kernel 4.19.62

tried..

ping 127.0.0.1

ping: socket: operation not permitted

ping 1

ping: socket: operation not permitted

...

as root:

/sbin/getcap /bin/ping

nothing set

 

to fix it

as root:

chmod u+s /bin/ping

pinging as user works.

 

 

 

opps.

using orange pi lite.

Link to comment
Share on other sites

How to reproduce.

MY mistake, it is a R1 not lite

image is

Armbian_5.90_Orangepi-r1_Debian-buster_next_4.19.57.img

Date of file is July5at 15:33

 

Flash to SD.

monut  as loop.

 

/etc/armbian.txt

armbain5.90

kernel 4.19.57

 

ls -l /bin/ping

-rwxr-xr-x 1 root root 47704 Aug  3  2018 /bin/ping

 

Boot image in a r1

(no internet access)

configure root

configure user

login as root

ls -l /bin/ping

-rwxr-xr-x 1 root root 47704 Aug  3  2018 /bin/ping

can ping as root.

 

----

because of no internet access (enterprise network) i cant use armbian-config

create file in lan /etc/network/interfaces.d

  auto eth0

  iface eth0 inet static

  address 192.168.5.250

  network 192.168.5.0

  netmask 255.255.255.0

  gateway 192.168.5.100

 

--bring it up

 ifup eth0 ... no errors

as root can ping debian.org (wierd did not touch resolv.conf)

Spoiler

james@orangepi:~$ su
Password:
root@orangepi:/home/james# ping 192.168.5.100
PING 192.168.5.100 (192.168.5.100) 56(84) bytes of data.
64 bytes from 192.168.5.100: icmp_seq=1 ttl=64 time=9.65 ms
64 bytes from 192.168.5.100: icmp_seq=2 ttl=64 time=5.56 ms
^C
--- 192.168.5.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 5.564/7.604/9.645/2.042 ms
^Xroot@orangepi:/home/james# ping debian.org
PING debian.org (149.20.4.15) 56(84) bytes of data.
64 bytes from mirror-isc3.debian.org (149.20.4.15): icmp_seq=1 ttl=55 time=41.9 ms
64 bytes from mirror-isc3.debian.org (149.20.4.15): icmp_seq=2 ttl=55 time=38.8 ms
64 bytes from mirror-isc3.debian.org (149.20.4.15): icmp_seq=3 ttl=55 time=43.1 ms
^C
--- debian.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 38.826/41.298/43.140/1.824 ms
root@orangepi:/home/james# exit
exit
james@orangepi:~$ ping 192.168.5.100
ping: socket: Operation not permitted
james@orangepi:~$ ping debian.org
ping: socket: Operation not permitted
james@orangepi:~$

 

 

root@orangepi:/home/james# armbianmonitor -u
System diagnosis information will now be uploaded to no results to fetchPlease post the URL in the forum where you've been asked for.

root@orangepi:/home/james#

 

 

 

aptiude, install upgrades, update to kernal 4.19.62, rebooted

had several crashes, had to power down twice.

both put massive pages of stuff. might be power related.

 

Spoiler

 

debian Buster with Armbian Linux ttyS0

orangepi login: root
Password:
Last login: Thu Aug 15 01:57:19 UTC 2019 on ttyS0
  ___  ____  _   ____  _
 / _ \|  _ \(_) |  _ \/ |
| | | | |_) | | | |_) | |
| |_| |  __/| | |  _ <| |
 \___/|_|   |_| |_| \_\_|
                         
Welcome to Debian Buster with Armbian Linux 4.19.62-sunxi
System load:   0.08 0.14 0.07      Up time:       3 min        
Memory usage:  31 % of 239MB      IP:            192.168.5.250
CPU temp:      42°C               
Usage of /:    8% of 15G        

[ General system configuration (beta): armbian-config ]


root@orangepi:~# ping debian.org
PING debian.org (5.153.231.4) 56(84) bytes of data.
64 bytes from senfter.debian.org (5.153.231.4): icmp_seq=1 ttl=48 time=197 ms
64 bytes from senfter.debian.org (5.153.231.4): icmp_seq=2 ttl=48 time=168 ms
^C
--- debian.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3ms
rtt min/avg/max/mdev = 167.717/182.552/197.387/14.835 ms
root@orangepi:~# exit
logout

Debian Buster with Armbian Linux ttyS0

orangepi login: james
Password:
Last login: Thu Aug 15 01:59:17 UTC 2019 on ttyS0
  ___  ____  _   ____  _
 / _ \|  _ \(_) |  _ \/ |
| | | | |_) | | | |_) | |
| |_| |  __/| | |  _ <| |
 \___/|_|   |_| |_| \_\_|
                         
Welcome to Debian Buster with Armbian Linux 4.19.62-sunxi
System load:   0.06 0.13 0.07      Up time:       4 min        
Memory usage:  31 % of 239MB      IP:            192.168.5.250
CPU temp:      43°C               
Usage of /:    8% of 15G        

[ General system configuration (beta): armbian-config ]


james@orangepi:~$ ls -l /bin/ping
-rwxr-xr-x 1 root root 47704 Aug  3  2018 /bin/ping
james@orangepi:~$ ping debian.org
ping: socket: Operation not permitted
james@orangepi:~$

 

 

 

root@orangepi:/home/james#
root@orangepi:/home/james# chmod u+s /bin/ping
root@orangepi:/home/james# ping debian.orgf
ping: debian.orgf: Name or service not known
root@orangepi:/home/james# ping debian.org
PING debian.org (128.31.0.62) 56(84) bytes of data.
64 bytes from mirror-csail.debian.org (128.31.0.62): icmp_seq=1 ttl=48 time=108 ms
64 bytes from mirror-csail.debian.org (128.31.0.62): icmp_seq=2 ttl=48 time=107 ms
64 bytes from mirror-csail.debian.org (128.31.0.62): icmp_seq=3 ttl=48 time=111 ms
c64 bytes from mirror-csail.debian.org (128.31.0.62): icmp_seq=4 ttl=48 time=108 ms
^C
--- debian.org ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 10ms
rtt min/avg/max/mdev = 106.549/108.606/111.445/1.819 ms
root@orangepi:/home/james# exit
exit
james@orangepi:~$ ping debian.org
PING debian.org (130.89.148.14) 56(84) bytes of data.
64 bytes from klecker-misc.debian.org (130.89.148.14): icmp_seq=1 ttl=51 time=169 ms
64 bytes from klecker-misc.debian.org (130.89.148.14): icmp_seq=2 ttl=51 time=168 ms
^C
--- debian.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev =

 

 

Edited by lanefu
I merged your posts
Link to comment
Share on other sites

15 minutes ago, martinayotte said:

maybe it would be good to redo this image or DEB package that provide "ping" ...


This is one of those small Buster bugs? ... but if this ping permission problem is here, the problem is probably elsewhere as well? On the download we have bug fixed version 5.91 ...

https://dl.armbian.com/nanopi-r1/archive/

where some other bugs were addressed. Perhaps this was also fixed?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines