Linux – Set up sudo

, <span>Linux – Set up sudo</span>, KandZ

if you donot have set up sudo then you can do with the following 2 ways:

  1. open the sudoers file
su - #login as root 
nano /etc/sudoers #open the sudoers file 
#add the following line below the root ALL=(ALL:ALL) 
ALL username   ALL=(ALL) ALL

2. add a file to /etc/sudoers.d/

su -

echo "username  ALL=(ALL) ALL" > /etc/sudoers.d/username




14400cookie-checkLinux – Set up sudoLinux – Set up sudo

Related posts

Leave a Comment