example for current user (executing from user)

echo "`whoami`    ALL=(ALL:ALL) NOPASSWD: ALL" |sudo tee /etc/sudoers.d/`whoami`


  • No labels