Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5771

Debian package upgrade sets wrong user permissions if HUDSON_USER is not hudson (default)


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Linux 2.6.31-19-server #56-Ubuntu SMP Thu Jan 28 03:40:48 UTC 2010 x86_64 GNU/Linux
    • Similar Issues:


      We have a setup where the user is not hudson (default) but build:

      Extract from /etc/default/hudson

      # user id to be invoked as (otherwise will run as root; not wise!) 

      After hudson package upgrade (aptitude) I noticed that the permission in the following directory is set to hudson:adm again instead of $



      /var/lib/hudson <- hudson configuration
      /var/run/hudson/war <- web root

      This causes hudson to not run properly.
      The user permissions should be changed to the user specified in HUDSON_USER.

      Possible fix in /trunk/hudson/main/debian/hudson.postinst:

      • Read HUDSON_USER from /etc/default/hudson or maybe hudson.default and set the permission accordingly

      I'm not sure how to handle the group permission. It could be fixed to adm (current solution) or a new environment variable HUDSON_GROUP could be added.

      A completely different approach could be to don't touch permission after upgrade at all.

      A recent change in this area (JENKINS-4047) leaves the jobs directory untouched. But this doesn't fix the current problem.


          Issue Links


            andisch andisch created issue -
            rdesgroppes RĂ©gis Desgroppes made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-7575 [ JENKINS-7575 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 135863 ] JNJira + In-Review [ 187062 ]


              • Assignee:
                andisch andisch
              • Votes:
                1 Vote for this issue
                4 Start watching this issue


                • Created: