Skip to content

Commit 420c1cc

Browse files
committed
Create sudoers file for lmp-base
1 parent e7d16cc commit 420c1cc

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Disable lecture by default
2+
# Defaults lecture = never
3+
4+
# members of group sudo can execute any command
5+
# %sudo ALL=(ALL) ALL
6+
7+
## Uncomment to allow any user to run sudo if they know the password
8+
## of the user they are running the command as (root by default).
9+
# Defaults targetpw # Ask for the password of the target user
10+
ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
11+
12+
fio ALL=(ALL:ALL) NOPASSWD: /usr/bin/set_cpu_freq

recipes-samples/images/lmp-devel-arduino-image.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ IMAGE_INSTALL:append:portenta-x8 = " openocd"
8989
fakeroot do_populate_rootfs_add_custom_sudoers () {
9090
# Allow sudo group users to use sudo
9191
bbwarn Changing sudoers for arduino ootb!
92-
install -m 0440 ${WORKDIR}/sudoers-arduino ${IMAGE_ROOTFS}${sysconfdir}/sudoers.d/51-arduino
92+
install -m 0440 ${WORKDIR}/sudoers-arduino-lmp-base ${IMAGE_ROOTFS}${sysconfdir}/sudoers.d/51-arduino
9393
}
9494

9595
IMAGE_PREPROCESS_COMMAND += "do_populate_rootfs_add_custom_sudoers; "

0 commit comments

Comments
 (0)