title: Jenkins - Slave user change
body: <p>I have a MAC slave connected to my Jenkins master via Java WebStart (SSH not working).
  I have an administrator user called 'qalab' who has logged into the m/c (it never sleeps).
  Node system information is shown as the given image.</p>
  
  <p><img src="https://i.stack.imgur.com/eUxND.png" alt="enter image description here"></p>
  
  <p>Now, I need to launch Safari browser via Selenium. 
  Whenever i run the test with Safari i get the below exception</p>
  
  <p>java.lang.IllegalStateException: The expected Safari data directory does not exist: /Users/null/Library/Safari</p>
  
  <p>(Chrome and Firefox works fine)</p>
  
  <p>Selenium looks for Safari in /Users/ user.name /Library/Safari</p>
  
  <p>I tried like this.</p>
  
  <p>System.setProperty("webdriver.safari.driver", "/Users/qalab/Library/Safari");</p>
  
  <p>But still, it does not seem to take this path and fails with above exception.</p>
  
  <p>Is there any way to fix this?
  Also why does it show the user.name as root.  How to change it to my user - 'qalab'?</p>