Merge "secure_path in sudoers: deal with possible quotes"
This commit is contained in:
commit
cf2030c2f6
@ -6,5 +6,5 @@ fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers
|
||||
sed -i -e "/secure_path/ s@\([\'\"]\?\)\$@:/usr/local/bin/\1@" /etc/sudoers
|
||||
visudo -c
|
||||
|
Loading…
Reference in New Issue
Block a user