Adding users to sudoers through shell script
You could simply echo (with elevated privileges, of course) directly to the /etc/sudoers file: sudo -i echo ‘nickw444 ALL=(ALL:ALL) ALL’ >> /etc/sudoers # ^^ # tab (note the tab character between the username and the first ALL) Or, for a script: #!/bin/bash # Run me with superuser privileges echo ‘nickw444 ALL=(ALL:ALL) ALL’ >> /etc/sudoers Then … Read more