I have an embedded system with the root mounted as read only. I want to set up so my sudo users are able without a password change the setting (I plan to use the commands in the login and logout scripts for bash).
I am getting a syntax error on the line (see below) that defines a REMOUNT alias. I can't figure out what that syntax error is. Here is the snippet from the sudoers file
# Cmnd alias specification
REMOUNT = /bin/mount -o remount\,rw /,/bin/mount -o remount\,ro /
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD: REMOUNT
What am I doing wrong?
Cmnd_Alias
missing just beforeREMOUNT
?