Traffic Server
  1. Traffic Server
  2. TS-15

User nobody / group nobody might not exist

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0a
    • Component/s: Build
    • Labels:
      None

      Description

      The user nobody, or group nobody, might not exist on some system, causing "make install" to fail. We should check for some common alternatives here, and/or provide switches to configure to specify which user and group to use (two switches). For example, on Ubuntu the user "nobody" is a member of the group "nogroup", causing our install breaks.

        Issue Links

          Activity

          Hide
          Bryan Call added a comment -

          We should add a defines to specify the default user and group. Then they can be overridden during configure.

          The defines should be:
          TS_SERVER_USER
          TS_INSTALL_USER
          TS_INSTALL_GROUP

          Show
          Bryan Call added a comment - We should add a defines to specify the default user and group. Then they can be overridden during configure. The defines should be: TS_SERVER_USER TS_INSTALL_USER TS_INSTALL_GROUP
          Hide
          Paul Querna added a comment -

          recent versions of httpd have used the 'daemon' user/group by default, which AFAIK, exists on... every unixy OS?

          Show
          Paul Querna added a comment - recent versions of httpd have used the 'daemon' user/group by default, which AFAIK, exists on... every unixy OS?
          Hide
          Nuno Fernandes added a comment -

          I can confirm that this problems exists in Mandriva 2010 distribution as the nobody user maps to nogroup.

          Show
          Nuno Fernandes added a comment - I can confirm that this problems exists in Mandriva 2010 distribution as the nobody user maps to nogroup.
          Hide
          George Paul added a comment -

          This patch 'TS-15_user_patch1.diff' is a modified patch of 'fix-nobody-user.patch' submitted by 'mturk@apache.org' and updates TrafficCop.cc and RecordsConfig.cc also. By default the $pkgsysuser and $pkgsysgroup is the current user doing the build. To enable a different system user and group use the '-with-user=<newuser>' and '-with-group=<newgroup>' options with 'configure'.

          patch -p0 -i TS-15_user_patch1.diff

          thanks to 'mturk@apache.org' for the original patch.

          Tested on Ubuntu-8.04. Please review and let me know if there are any issues.

          cheers,

          -George

          Show
          George Paul added a comment - This patch ' TS-15 _user_patch1.diff' is a modified patch of 'fix-nobody-user.patch' submitted by 'mturk@apache.org' and updates TrafficCop.cc and RecordsConfig.cc also. By default the $pkgsysuser and $pkgsysgroup is the current user doing the build. To enable a different system user and group use the '- with-user=<newuser>' and ' -with-group=<newgroup>' options with 'configure'. patch -p0 -i TS-15 _user_patch1.diff thanks to 'mturk@apache.org' for the original patch. Tested on Ubuntu-8.04. Please review and let me know if there are any issues. cheers, -George
          Hide
          George Paul added a comment -

          This patch 'TS-15_user_patch1.diff' has been committed to traffic server 'dev' branch.
          -George

          Show
          George Paul added a comment - This patch ' TS-15 _user_patch1.diff' has been committed to traffic server 'dev' branch. -George
          Hide
          George Paul added a comment -

          This patch 'TS-15_user_patch1.diff' has been committed to the traffic server 'trunk' and 'dev' branches. Tested on ubuntu804 and fedora11.
          -George

          Show
          George Paul added a comment - This patch ' TS-15 _user_patch1.diff' has been committed to the traffic server 'trunk' and 'dev' branches. Tested on ubuntu804 and fedora11. -George

            People

            • Assignee:
              George Paul
              Reporter:
              Leif Hedstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development