[ 
https://issues.apache.org/jira/browse/VCL-646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron Peeler resolved VCL-646.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.3
         Assignee: Aaron Peeler

The useradd functionality was pushed up to Linux.pm and handled with a similar 
fix.

Thanks for pointing this out.
                
> Ubuntu.pm doesn't set userid when creating a user account
> ---------------------------------------------------------
>
>                 Key: VCL-646
>                 URL: https://issues.apache.org/jira/browse/VCL-646
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.3
>         Environment: Ubuntu 12.04 image, LDAP-derived user-ids
>            Reporter: Nathaniel Sherry
>            Assignee: Aaron Peeler
>            Priority: Minor
>              Labels: ubuntu, uid, vcld,
>             Fix For: 2.3.3
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to