Make config-sudoers.sh bashate compliant
Change-Id: Ie3fdcf5d3e1cda3b85a6532e462ad78e98e1a378 Partially-Implements: blueprint bashate-gate
This commit is contained in:
parent
7cdd36d345
commit
1d299dfe9a
@ -4,9 +4,9 @@
|
||||
# Since the container is running in daemon mode, a tty
|
||||
# is not present and requiretty must be commented out.
|
||||
if [ ! -f /var/run/sudo-modified ]; then
|
||||
chmod 0640 /etc/sudoers
|
||||
sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
chmod 0640 /etc/sudoers
|
||||
sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
fi
|
||||
|
||||
touch /var/run/sudo-modified
|
||||
|
Loading…
x
Reference in New Issue
Block a user