Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ping does not run with permission denied error #2

Closed
manios opened this issue Mar 25, 2019 · 0 comments
Closed

Ping does not run with permission denied error #2

manios opened this issue Mar 25, 2019 · 0 comments

Comments

@manios
Copy link
Owner

manios commented Mar 25, 2019

ping command does not run as it requires root privileges in Alpine. We run Nagios with a specific user nagios. To overcome this burden we are going to run ping using gosu utility.

More references:

  1. https://askubuntu.com/questions/453377/how-to-enable-event-mpm-apache-2-4-on-ubuntu-14-04-with-thread-safe-php
  2. Issue with supported formatting commands for "ps" gliderlabs/docker-alpine#173
  3. ping: permission denied (are you root?) smebberson/docker-alpine#65
  4. https://serverfault.com/questions/238962/how-do-i-clear-the-s-permission-on-a-directory-in-linux
  5. https://www.linuxnix.com/suid-set-suid-linuxunix/
  6. https://sourceforge.net/p/nagios/mailman/message/19832020/

Furthermore when we run :

/opt/nagios $ /bin/gosu root /bin/ping localhost
error: failed switching to "root": operation not permitted

inside an ARMv6 or ARMv6 Docker container which runs with QEmu, then this is due to the fact
qemu-user-static/#17 and we need to run

docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes

so it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant