Jenkins starts as root

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins starts as root

mwpowellhtx
Hello,

I am running Linux Ubuntu and want to run a Jenkins CI server there.
I've got Jenkins installed and I believe JENKINS_USER configured as
"jenkins" (or my user for Jenkins).

However, when I pull up the host:8080 web page for the first time, I
get /root permission issues. It's starting as root not as the jenkins
user.

So something about it isn't right or needs adjusting.

When I stop/start the service, I've also observed that the credential
under which I give the command appears

<error>
Unable to create the home directory '/root/srcb/JENKINS'. This is most
likely a permission problem.

To change the home directory, use JENKINS_HOME environment variable or
set the JENKINS_HOME system property. See Container-specific
documentation for more details of how to do this.
</error>

I do have JENKINS_HOME set to ~/srcb/JHENKINS, with srcb being a
symbolic link to a second volume (separate VM-related issue). Seems to
work okay from a Linux admin standpoint.

What else do you need to know? It's running standalone, which I think
is the java-applet right? Something like that. That's sufficient AFAIK
unless I need to configure it as more of a service, like through
Apache or something.

Any advice for setting up on Linux? Thank you.

Regards,

Michael Powell

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Jenkins starts as root

Lloyd Meinholz
What container are you running jenkins in? If you are using the ubuntu tomcat package, then it will be running as the user of the container that is running jenkins. So the jenkins user will be tomcat and writing in ~tomcat/.jenkins. The tomcat user probably doesn't have rights to the jenkins user.

I have my own version of tomcat, not the ubuntu package and jenkins runs nicely as the tomcat user.

Lloyd


On Thu, Mar 28, 2013 at 11:38 AM, Michael <[hidden email]> wrote:
Hello,

I am running Linux Ubuntu and want to run a Jenkins CI server there.
I've got Jenkins installed and I believe JENKINS_USER configured as
"jenkins" (or my user for Jenkins).

However, when I pull up the host:8080 web page for the first time, I
get /root permission issues. It's starting as root not as the jenkins
user.

So something about it isn't right or needs adjusting.

When I stop/start the service, I've also observed that the credential
under which I give the command appears

<error>
Unable to create the home directory '/root/srcb/JENKINS'. This is most
likely a permission problem.

To change the home directory, use JENKINS_HOME environment variable or
set the JENKINS_HOME system property. See Container-specific
documentation for more details of how to do this.
</error>

I do have JENKINS_HOME set to ~/srcb/JHENKINS, with srcb being a
symbolic link to a second volume (separate VM-related issue). Seems to
work okay from a Linux admin standpoint.

What else do you need to know? It's running standalone, which I think
is the java-applet right? Something like that. That's sufficient AFAIK
unless I need to configure it as more of a service, like through
Apache or something.

Any advice for setting up on Linux? Thank you.

Regards,

Michael Powell

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.