diff --git a/Dockerfile b/Dockerfile index c51f5cc..2be9445 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,16 +25,9 @@ RUN \ sudo \ tcptraceroute \ ttf-dejavu && \ - echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \ - /etc/sudoers.d/traceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \ - /etc/sudoers.d/tcptraceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \ - /etc/sudoers.d/tcpping && \ + echo "**** give setuid access to traceroute & tcptraceroute ****" && \ + chmod a+s /usr/bin/traceroute && \ + chmod a+s /usr/bin/tcptraceroute && \ echo "**** fix path to cropper.js ****" && \ sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \ echo "**** install tcping script ****" && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 9c4504a..147bf4b 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -25,16 +25,9 @@ RUN \ sudo \ tcptraceroute \ ttf-dejavu && \ - echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \ - /etc/sudoers.d/traceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \ - /etc/sudoers.d/tcptraceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \ - /etc/sudoers.d/tcpping && \ + echo "**** give setuid access to traceroute & tcptraceroute ****" && \ + chmod a+s /usr/bin/traceroute && \ + chmod a+s /usr/bin/tcptraceroute && \ echo "**** fix path to cropper.js ****" && \ sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \ echo "**** install tcping script ****" && \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 8e21771..9396a22 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -25,16 +25,9 @@ RUN \ sudo \ tcptraceroute \ ttf-dejavu && \ - echo "**** give abc sudo access to traceroute & tcptraceroute & tcpping ****" && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/traceroute" >> \ - /etc/sudoers.d/traceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcptraceroute" >> \ - /etc/sudoers.d/tcptraceroute && \ - echo \ - "abc ALL=(ALL) NOPASSWD: /usr/bin/tcpping" >> \ - /etc/sudoers.d/tcpping && \ + echo "**** give setuid access to traceroute & tcptraceroute ****" && \ + chmod a+s /usr/bin/traceroute && \ + chmod a+s /usr/bin/tcptraceroute && \ echo "**** fix path to cropper.js ****" && \ sed -i 's#src="/cropper/#/src="cropper/#' /etc/smokeping/basepage.html && \ echo "**** install tcping script ****" && \