Hi I'm trying to use sed in a sudoers file.
This works from root and removes this number sign.
However this one doesn't
can someone else test this.
This works from root and removes this number sign.
sed -i '' 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /usr/local/etc/sudoers
However this one doesn't
sed -i "" 's/# %sudo ALL=(ALL) ALL/%sudo ALL=(ALL) ALL/' /usr/local/etc/sudoers
can someone else test this.