"tomcat" is the Jenkins user on Bitnami Jenkins
This commit is contained in:
parent
8a23baae4a
commit
7990c966f6
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue