Skip to content

Commit

Permalink
Configure no-password sudo for opsi user
Browse files Browse the repository at this point in the history
  • Loading branch information
dzil123 committed Jan 16, 2020
1 parent 037eaa3 commit f52498a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stage2/01-sys-tweaks/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ install -m 644 files/console-setup "${ROOTFS_DIR}/etc/default/"

install -m 755 files/rc.local "${ROOTFS_DIR}/etc/"

install -m 440 files/010_opsi-nopasswd "${ROOTFS_DIR}/etc/sudoers.d/"

on_chroot << EOF
systemctl disable hwclock.sh
systemctl disable nfs-common
Expand Down
1 change: 1 addition & 0 deletions stage2/01-sys-tweaks/files/010_opsi-nopasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
opsi ALL=(ALL) NOPASSWD: ALL

0 comments on commit f52498a

Please sign in to comment.