summaryrefslogtreecommitdiff
path: root/recipes-extended/sudo/files/sudoers.patch
diff options
context:
space:
mode:
authormykola.salomatin <mykola.salomatin@globallogic.com>2021-02-09 22:51:21 +0200
committerJohn Klug <john.klug@multitech.com>2021-02-10 09:14:44 -0600
commit4982d5f4b80e65f2a02ad2b9fc263688706a55f7 (patch)
tree13ddb8f2a46aab05397ff5c26053af5bd0ac3158 /recipes-extended/sudo/files/sudoers.patch
parentb22c4ce0fcea2099fe598f5537d7cced50613c07 (diff)
downloadmeta-mlinux-4982d5f4b80e65f2a02ad2b9fc263688706a55f7.tar.gz
meta-mlinux-4982d5f4b80e65f2a02ad2b9fc263688706a55f7.tar.bz2
meta-mlinux-4982d5f4b80e65f2a02ad2b9fc263688706a55f7.zip
[MTX-3814] mPower R. Apr 2021: sudo shall be patched - GP-1010
Update sudo version to the latest
Diffstat (limited to 'recipes-extended/sudo/files/sudoers.patch')
-rw-r--r--recipes-extended/sudo/files/sudoers.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-extended/sudo/files/sudoers.patch b/recipes-extended/sudo/files/sudoers.patch
new file mode 100644
index 0000000..aed0f10
--- /dev/null
+++ b/recipes-extended/sudo/files/sudoers.patch
@@ -0,0 +1,21 @@
+diff -uprN old/plugins/sudoers/sudoers.in new/plugins/sudoers/sudoers.in
+--- old/plugins/sudoers/sudoers.in 2015-10-31 18:34:59.000000000 -0500
++++ new/plugins/sudoers/sudoers.in 2017-04-20 10:32:19.530931283 -0500
+@@ -57,7 +57,7 @@
+ # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
+ ##
+ ## Uncomment to use a hard-coded PATH instead of the user's to find commands
+-# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
++Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+ ##
+ ## Uncomment to send mail if the user does not enter the correct password.
+ # Defaults mail_badpass
+@@ -85,7 +85,7 @@ root ALL=(ALL) ALL
+ # %wheel ALL=(ALL) NOPASSWD: ALL
+
+ ## Uncomment to allow members of group sudo to execute any command
+-# %sudo ALL=(ALL) ALL
++%sudo ALL=(ALL) ALL
+
+ ## Uncomment to allow any user to run sudo if they know the password
+ ## of the user they are running the command as (root by default).