"tomcat" is the Jenkins user on Bitnami Jenkins

This commit is contained in:
Michael Mintz 2019-04-05 17:00:17 -04:00
parent 8a23baae4a
commit 7990c966f6
3 changed files with 18 additions and 9 deletions

View File

@ -36,10 +36,10 @@ sudo git clone https://github.com/seleniumbase/SeleniumBase.git
cd SeleniumBase/integrations/linux/
```
#### Step 6. Give Jenkins (aka "tomcat" user) sudo access (See [jenkins_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/jenkins_permissions.sh) for details)
#### Step 6. Give Jenkins (aka "tomcat" user) sudo access (See [tomcat_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/tomcat_permissions.sh) for details)
```bash
./jenkins_permissions.sh
./tomcat_permissions.sh
```
#### Step 7. Become "tomcat" (the Jenkins user) and enter a "bash" shell

View File

@ -1,10 +1,9 @@
# This file will add "tomcat" to the sudoers file.
# "tomcat" is the Jenkins user name by default
# This file will add "jenkins" to the sudoers file.
# To become tomcat from a different user, use the following:
# sudo su tomcat
# To become jenkins from a different user, use the following:
# sudo su jenkins
# bash
sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
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"

View File

@ -0,0 +1,10 @@
# This file will add "tomcat" to the sudoers file.
# "tomcat" is the Jenkins user name by default on Bitnami Jenkins machines
# To become tomcat from a different user, use the following:
# sudo su tomcat
# bash
sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"