Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | |||||
4 | echo "vinstall ALL=(ALL) NOPASSWD:ALL" > tmp | ||||
5 | sudo chown root.root tmp | ||||
6 | sudo mv tmp /etc/sudoers.d/vinstall | ||||
Sergio Slobodrian | b92e513 | 2017-09-13 13:04:05 -0400 | [diff] [blame] | 7 | sudo chmod 664 /etc/sudoers.d/vinstall |
Sergio Slobodrian | ee4b2bc | 2017-06-05 10:08:59 -0400 | [diff] [blame] | 8 | mkdir .ssh |
9 | chmod 0700 .ssh | ||||
10 | ssh-keygen -f /home/vinstall/.ssh/id_rsa -t rsa -N '' |