Hello,
I have to a add 2 lines to /etc/sudoers file under this section below, can someone please suggest script to add these two lines when execute this remotely on to a multiple servers.
Thanks,
I have to a add 2 lines to /etc/sudoers file under this section below, can someone please suggest script to add these two lines when execute this remotely on to a multiple servers.
Code:
before
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
After
## Allow root to run any commands anywhere
root## Allow root to run any commands anywhere
root ALL=(ALL) ALL
man ALL=(ALL) ALL
moon ALL=(ALL) ALL