mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
fix(coreos-base/coreos-base): Disable sudo password for core user.
Considering access to production systems will be by ssh keys, not some developer password, the user doesn't have a password to give sudo.
This commit is contained in:
parent
8a39a029fa
commit
7006b267c2
@ -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