diff options
author | John Klug <john.klug@multitech.com> | 2020-08-17 17:46:01 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-08-17 17:46:01 -0500 |
commit | 00965a3bc4cfe8a83ea3c1ded3ec3b3d3fac3edc (patch) | |
tree | efba8e6ed1d75790aad14b099fc33923c92c4d98 /recipes-core | |
parent | dfb93979c4a00c5aed821a4a6fe1f7e55a4dad7a (diff) | |
download | meta-mlinux-00965a3bc4cfe8a83ea3c1ded3ec3b3d3fac3edc.tar.gz meta-mlinux-00965a3bc4cfe8a83ea3c1ded3ec3b3d3fac3edc.tar.bz2 meta-mlinux-00965a3bc4cfe8a83ea3c1ded3ec3b3d3fac3edc.zip |
Add /sbin and /usr/sbin to sudo user
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/base-files/base-files_3.0.14.bbappend | 9 |
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 } |