From f0eca4ff4c24fc04f03ad2bf58ad7266b0b4c843 Mon Sep 17 00:00:00 2001 From: Justin Clarke Date: Fri, 16 Aug 2013 12:25:48 +1000 Subject: [PATCH] Ensure /etc/sudoers sed replacement works for Debian 7.x. --- definitions/debian-7.1.0/sudoers.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 120000 => 100644 definitions/debian-7.1.0/sudoers.sh diff --git a/definitions/debian-7.1.0/sudoers.sh b/definitions/debian-7.1.0/sudoers.sh deleted file mode 120000 index 70234a7ff..000000000 --- a/definitions/debian-7.1.0/sudoers.sh +++ /dev/null @@ -1 +0,0 @@ -../.debian/sudoers.sh \ No newline at end of file diff --git a/definitions/debian-7.1.0/sudoers.sh b/definitions/debian-7.1.0/sudoers.sh new file mode 100644 index 000000000..36862e097 --- /dev/null +++ b/definitions/debian-7.1.0/sudoers.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +sed -i -e '/Defaults\s\+env_reset/a Defaults\tsecure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' /etc/sudoers +sed -i -e 's/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers