mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
Merge pull request #127 from marineam/sudo
fix(coreos-base/coreos-base): Disable sudo password for core user.
This commit is contained in:
commit
4cc96fab60
@ -144,7 +144,7 @@ src_install() {
|
||||
# Add a sudo file for the core use
|
||||
if [[ -n ${SHARED_USER_NAME} ]] ; then
|
||||
insinto /etc/sudoers.d
|
||||
echo "${SHARED_USER_NAME} ALL=(ALL) ALL" > 95_core_base
|
||||
echo "${SHARED_USER_NAME} ALL=(ALL) NOPASSWD: ALL" > 95_core_base
|
||||
insopts -m 440
|
||||
doins 95_core_base || die
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user