diff options
author | John Klug <john.klug@multitech.com> | 2020-08-17 17:46:01 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-11-12 09:25:49 -0600 |
commit | f23100c499a6a5acf9a82ff98efdd526adaa76c0 (patch) | |
tree | efba8e6ed1d75790aad14b099fc33923c92c4d98 /recipes-core | |
parent | 1c40e1e1359a5e0911b5651459bc377f8bad63c2 (diff) | |
download | meta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.tar.gz meta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.tar.bz2 meta-mlinux-f23100c499a6a5acf9a82ff98efdd526adaa76c0.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 } |