Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Adding a lines to specific section of the file.

$
0
0
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.

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

Thanks,

Viewing all articles
Browse latest Browse all 16232

Trending Articles