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

CMake plugins creates files for user root

    XMLWordPrintable

Details

    Description

      When cmake plugin is run it shows some errors because there are no rights for accessing files.
      These files belong to user root instead of user jenkins:

      CMake Error: Cannot open file for write: /var/lib/jenkins/home/workspace/myproject/default/build/src/test/CMakeFiles/mytest.dir/flags.make.tmp
      CMake Error: : System Error: Permission denied

      Actually all directories with the schema "<name>.dir" belong to user root instead of user jenkins

      On Gentoo jenkins is started with parameter "--user jenkins"!

      jenkins version 1.500, cmake plugin version 1.9

      Attachments

        Activity

          volkai volkai added a comment -

          Is this still a problem?

          My initial guess is that Jenkins had been started without "--user jenkins" before and those cmake files have been created with user root. Cmakebuilder-plugins neither has any idea under which user it runs, nor does it somehow influence it.

          volkai volkai added a comment - Is this still a problem? My initial guess is that Jenkins had been started without "--user jenkins" before and those cmake files have been created with user root. Cmakebuilder-plugins neither has any idea under which user it runs, nor does it somehow influence it.
          15knots Martin Weber added a comment -

          Linux permissions would never allow a non-root user to create files with superuser ownership...
          ... unless a gentoo box owner decides to disable permission check when build her Linux kernel.

          15knots Martin Weber added a comment - Linux permissions would never allow a non-root user to create files with superuser ownership... ... unless a gentoo box owner decides to disable permission check when build her Linux kernel.

          People

            Unassigned Unassigned
            barade barade barade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: