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

On MacOSX, pkg installation doesn't set newsyslog permissions properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Every time I reinstall jenkins I have to reset the /var/log/jenkins permissions

        Attachments

          Issue Links

            Activity

            Hide
            lacostej lacostej added a comment -
            Show
            lacostej lacostej added a comment - Can probably be solved by https://github.com/lacostej/jenkins/commit/69d9bff59c2e4e7908a3490f9e154af4490d7298 I haven't tested it yet.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jerome Lacoste
            Path:
            osx/scripts/postinstall-launchd
            osx/scripts/postinstall-launchd-jenkins
            http://jenkins-ci.org/commit/jenkins/69d9bff59c2e4e7908a3490f9e154af4490d7298
            Log:
            JENKINS-26982 macosx: configure newsyslog to reset the /var/log/jenkins/ with appropriate permissions

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jerome Lacoste Path: osx/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/69d9bff59c2e4e7908a3490f9e154af4490d7298 Log: JENKINS-26982 macosx: configure newsyslog to reset the /var/log/jenkins/ with appropriate permissions
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jerome Lacoste
            Path:
            osx/scripts/postinstall-launchd-jenkins
            http://jenkins-ci.org/commit/jenkins/66cb50da3e5ace025f3a44ee727274053a90642b
            Log:
            JENKINS-26982 MacOSX: re-use jenkins user default group for group ownership permissions

            Compare: https://github.com/jenkinsci/jenkins/compare/69d9bff59c2e^...66cb50da3e5a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jerome Lacoste Path: osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/jenkins/66cb50da3e5ace025f3a44ee727274053a90642b Log: JENKINS-26982 MacOSX: re-use jenkins user default group for group ownership permissions Compare: https://github.com/jenkinsci/jenkins/compare/69d9bff59c2e ^...66cb50da3e5a
            Hide
            danielbeck Daniel Beck added a comment -

            Does your commit fix this issue?

            Show
            danielbeck Daniel Beck added a comment - Does your commit fix this issue?
            Hide
            lacostej lacostej added a comment -

            Daniel,

            yes the 2 commits (https://github.com/jenkinsci/jenkins/pull/1575) fix the issues. I described the test procedure I used in the PR.

            BTW, JENKINS-26983 is NOT a duplicate. It's about the fact that the service defaults are overwritten here:

            https://github.com/jenkinsci/jenkins/blob/2bfc2bb199a3d04155cb292838398419e32b3135/osx/scripts/postinstall-launchd-jenkins#L51

            Jerome

            Show
            lacostej lacostej added a comment - Daniel, yes the 2 commits ( https://github.com/jenkinsci/jenkins/pull/1575 ) fix the issues. I described the test procedure I used in the PR. BTW, JENKINS-26983 is NOT a duplicate. It's about the fact that the service defaults are overwritten here: https://github.com/jenkinsci/jenkins/blob/2bfc2bb199a3d04155cb292838398419e32b3135/osx/scripts/postinstall-launchd-jenkins#L51 Jerome
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            osx/scripts/postinstall-launchd
            osx/scripts/postinstall-launchd-jenkins
            http://jenkins-ci.org/commit/packaging/1f9ef5c79622a51d31c3be2a7b72b84f5ec96e32
            Log:
            JENKINS-26982 MacOSX: configure newsyslog to reset the /var/log/jenkins/ with appropriate permissions

            Porting the fix from
            https://github.com/lacostej/jenkins/commit/69d9bff59c2e4e7908a3490f9e154af4490d7298

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: osx/scripts/postinstall-launchd osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/packaging/1f9ef5c79622a51d31c3be2a7b72b84f5ec96e32 Log: JENKINS-26982 MacOSX: configure newsyslog to reset the /var/log/jenkins/ with appropriate permissions Porting the fix from https://github.com/lacostej/jenkins/commit/69d9bff59c2e4e7908a3490f9e154af4490d7298
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            osx/scripts/postinstall-launchd-jenkins
            http://jenkins-ci.org/commit/packaging/26b1323a18793e7757423af54171310193b74f29
            Log:
            [FIXED JENKINS-26982] MacOSX: re-use jenkins user default group for group own $B!D (Bership permissions

            Porting
            https://github.com/lacostej/jenkins/commit/66cb50da3e5ace025f3a44ee727274053a90642b

            Compare: https://github.com/jenkinsci/packaging/compare/db61586bf48e...26b1323a1879

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: osx/scripts/postinstall-launchd-jenkins http://jenkins-ci.org/commit/packaging/26b1323a18793e7757423af54171310193b74f29 Log: [FIXED JENKINS-26982] MacOSX: re-use jenkins user default group for group own $B!D (Bership permissions Porting https://github.com/lacostej/jenkins/commit/66cb50da3e5ace025f3a44ee727274053a90642b Compare: https://github.com/jenkinsci/packaging/compare/db61586bf48e...26b1323a1879

              People

              • Assignee:
                Unassigned
                Reporter:
                lacostej lacostej
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: