If you want ubuntu or your linux machine to stop asking for the sudo password every time you issue a command with sudo
sudo sh -c "echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers"
Or a little safer, where feature is only for user
sudo sh -c "echo '$USER ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers"
PS: This is best suited for a personal machine and not on a server.
sudo sh -c "echo 'ALL ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers"
Or a little safer, where feature is only for user
sudo sh -c "echo '$USER ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers"
PS: This is best suited for a personal machine and not on a server.
No comments:
Post a Comment