title: Openshift container as root user
body: <p>Hi Iam working on CICD implementation on openshift 3.9. I have a jenkins pod running in openshift. Iam running  selenium scripts in jenkins and below is the error which iam getting like missing a package</p>
  
  <pre><code>   Running TestSuite
  /var/lib/jenkins/jobs/Pipeline/workspace/src/test/resources/chromedriver: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
  Nov 21, 2018 8:25:36 AM org.openqa.selenium.os.OsProcess checkForError
  SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)
  Tests run: 8, Failures: 1, Errors: 0, Skipped: 7, Time elapsed: 21.9 sec &lt;&lt;&lt; FAILURE! - in TestSuite
  BrowserSettings(SecurityCheckList)  Time elapsed: 21.273 sec  &lt;&lt;&lt; FAILURE!
  org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
  Build info: version: '3.9.1', revision: '63f7b50', time: '2018-02-07T22:25:02.294Z'
  System info: host: 'jenkins-1-7zgld', ip: '10.131.0.32', os.name: 'Linux', os.arch: 'i386', os.version: '3.10.0-957.el7.x86_64', java.version: '1.8.0_181'
  Driver info: driver.version: ChromeDriver
      at java.util.concurrent.FutureTask.get(FutureTask.java:205)
      at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
      at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
      at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
      at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
  </code></pre>
  
  <p>For that i want to install libgconf-2-4 in my jenkins container through the below command </p>
  
  <pre><code>yum install libgconf-2-4
  </code></pre>
  
  <p>When i try to install the below error is coming in my jenkins container</p>
  
  <pre><code>    sh-4.2$ yum install libgconf2-4
  Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
  [Errno 13] Permission denied: '/etc/pki/entitlement-host'
  ovl: Error while doing RPMdb copy-up:
  [Errno 13] Permission denied: '/var/lib/rpm/.dbenv.lock'
  You need to be root to perform this command.
  </code></pre>
  
  <p>When i goto specified location and try to change the permissions as chmod 777 .dbenv.lock</p>
  
  <pre><code>    sh-4.2$ cd /var/lib/rpm/
  sh-4.2$ ls -latr
  total 19560
  -rw-r--r--. 1 root root        0 Aug  9 18:21 .dbenv.lock
  </code></pre>
  
  <p>it is throwing error as</p>
  
  <pre><code>sh-4.2$ chmod 777 .dbenv.lock
  chmod: changing permissions of ‘.dbenv.lock’: Operation not permitted
  </code></pre>
  
  <p>My question is how to enter into jenkins pod as root user and install the rpm package libgconf-2-4 through yum install libgconf-2-4 in openshift?</p>