#sudo echo "${USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
#sudo echo "$(whoami) ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo "sarayut ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sudo chmod +w /etc/sudoers
sudo echo "${USER} ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
sudo chmod -w /etc/sudoers
sudo cat /etc/sudoers
sudo without password
Published inUncategorized
Be First to Comment