Wednesday, November 27, 2019

Add users to sudo group

To add users to sudo group so that password won't be prompted with ssh.
For debian/ubuntu:
sudo visudo

Then add below line at the end of file.
user1 ALL=(ALL) NOPASSWD: ALL

For centOS:
su - 
root> visudo
then do the remaining part.

No comments:

Post a Comment