Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-646

Ubuntu.pm doesn't set userid when creating a user account

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: vcld (backend)
    • Labels:
    • Environment:

      Ubuntu 12.04 image, LDAP-derived user-ids

      Description

      By default, when Ubuntu.pm creates user accounts in the 'reserve' function, it does not set the user id for the account. The user account would be created with uid 1000

      My work-around was to replace

      my $useradd_string = "/usr/sbin/useradd -d /home/$user_name -m -g admin $user_name";

      with

      my $user_uid = $self->data->get_user_uid();
      my $useradd_string = "/usr/sbin/useradd -d /home/$user_name -m -u $user_uid -g adm $user_name";

      Please note that these updated lines also contain a fix for the 'admin' group not existing, but rather the 'adm' group.

        Attachments

          Activity

            People

            • Assignee:
              fapeeler Frank Aaron Peeler
              Reporter:
              nsasherr Nathaniel Sherry
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: