summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-08-17 17:46:01 -0500
committerJohn Klug <john.klug@multitech.com>2020-11-12 09:25:49 -0600
commitf23100c499a6a5acf9a82ff98efdd526adaa76c0 (patch)
treeefba8e6ed1d75790aad14b099fc33923c92c4d98
parent1c40e1e1359a5e0911b5651459bc377f8bad63c2 (diff)
downloadmeta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.tar.gz
meta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.tar.bz2
meta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.zip
Add /sbin and /usr/sbin to sudo user
-rw-r--r--recipes-core/base-files/base-files_3.0.14.bbappend9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend
index 3ff14ba..4221344 100644
--- a/recipes-core/base-files/base-files_3.0.14.bbappend
+++ b/recipes-core/base-files/base-files_3.0.14.bbappend
@@ -14,4 +14,13 @@ do_install_append() {
rm ${D}/${sysconfdir}/fstab
fi
set +x
+
+
+ cat >> ${D}${sysconfdir}/profile << 'EOT'
+for g in $(groups) ; do
+ if [ "${g}" = sudo ] ; then
+ PATH+=":/sbin:/usr/sbin"
+ fi
+done
+EOT
}