To setup sudo users in Fedora or CentOS

To setup user “joseph” as sudo user
echo ‘joseph ALL=(ALL) ALL’ >> /etc/sudoers
This will prompt for password , If u do not want it to prompt U need to make entry as
echo ‘joseph ALL=(ALL) NOPASSWD:ALL’ >> /etc/sudoers

To setup user “joseph” as sudo user
echo ‘joseph ALL=(ALL) ALL’ >> /etc/sudoers
This will prompt for password , If u do not want it to prompt U need to make entry as
echo ‘joseph ALL=(ALL) NOPASSWD:ALL’ >> /etc/sudoers

Tags: , ,

Leave a Reply