Skip to content

Commit

Permalink
Merge pull request #185 from ronivay/fix/missing-findmnt-sudoers
Browse files Browse the repository at this point in the history
fix: add missing findmnt command to sudoers configuration
  • Loading branch information
ronivay authored May 16, 2023
2 parents adbd534 + fd2b43e commit eff60cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xo-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function InstallSudo {
echo
printinfo "Generating sudoers configuration to $SUDOERSFILE"
TMPSUDOERS="$(mktemp /tmp/xo-sudoers.XXXXXX)"
runcmd "echo '$XOUSER ALL=(root) NOPASSWD: /bin/mount, /bin/umount' > '$TMPSUDOERS'"
runcmd "echo '$XOUSER ALL=(root) NOPASSWD: /bin/mount, /bin/umount, /bin/findmnt' > '$TMPSUDOERS'"
if runcmd "visudo -cf $TMPSUDOERS"; then
runcmd "mv $TMPSUDOERS $SUDOERSFILE"
else
Expand Down

0 comments on commit eff60cc

Please sign in to comment.