2019-04-06 05:00:17 +08:00
|
|
|
# This file will add "jenkins" to the sudoers file.
|
2016-01-25 09:42:20 +08:00
|
|
|
|
2019-04-06 05:00:17 +08:00
|
|
|
# To become jenkins from a different user, use the following:
|
|
|
|
# sudo su jenkins
|
2016-01-25 09:42:20 +08:00
|
|
|
# bash
|
|
|
|
|
2019-04-06 05:00:17 +08:00
|
|
|
sudo sh -c "echo \"%jenkins ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
|
|
|
|
sudo sh -c "echo \"%jenkins ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
|
|
|
|
sudo sh -c "echo \"jenkins ALL=NOPASSWD: ALL\" >> /etc/sudoers"
|