Skip to content

Commit 7990c96

Browse files
committed
"tomcat" is the Jenkins user on Bitnami Jenkins
1 parent 8a23baa commit 7990c96

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

integrations/google_cloud/ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ sudo git clone https://github.com/seleniumbase/SeleniumBase.git
3636
cd SeleniumBase/integrations/linux/
3737
```
3838

39-
#### 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)
39+
#### 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)
4040

4141
```bash
42-
./jenkins_permissions.sh
42+
./tomcat_permissions.sh
4343
```
4444

4545
#### Step 7. Become "tomcat" (the Jenkins user) and enter a "bash" shell
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# This file will add "tomcat" to the sudoers file.
2-
# "tomcat" is the Jenkins user name by default
1+
# This file will add "jenkins" to the sudoers file.
32

4-
# To become tomcat from a different user, use the following:
5-
# sudo su tomcat
3+
# To become jenkins from a different user, use the following:
4+
# sudo su jenkins
65
# bash
76

8-
sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
9-
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
10-
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
7+
sudo sh -c "echo \"%jenkins ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
8+
sudo sh -c "echo \"%jenkins ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
9+
sudo sh -c "echo \"jenkins ALL=NOPASSWD: ALL\" >> /etc/sudoers"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file will add "tomcat" to the sudoers file.
2+
# "tomcat" is the Jenkins user name by default on Bitnami Jenkins machines
3+
4+
# To become tomcat from a different user, use the following:
5+
# sudo su tomcat
6+
# bash
7+
8+
sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
9+
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
10+
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"

0 commit comments

Comments
 (0)