Hi Dmitri,

Thanks for pointing this out, the admin group must have existed in my
initial testing.

Did you want to commit the fix to both the bug-fix branch and trunk?

Aaron

On Wed, Aug 22, 2012 at 9:44 AM, Dmitri Chebotarov <[email protected]> wrote:
> Hi
>
> I've just built Ubuntu Desktop 12.04 VCL image in VCL 2.3.
> The image was successfully captured, but new reservation wasn't 100% correct 
> (user couldn't login).
> On the step when VCL adds user to reservation (line 172 in  
> /usr/local/vcl/lib/VCL/Module/OS/Linux/Ubuntu.pm), useradd command fails.
>
> The 'admin' group doesn't exists in Ubuntu Desktop 12.04 (I'm not sure about 
> other versions).
> The group name should be 'adm':
>
> # diff Ubuntu.pm Ubuntu.pm.BKP
> 172c172
> < my $useradd_string = "/usr/sbin/useradd -d /home/$user_name -m -g adm 
> $user_name";
> ---
>> my $useradd_string = "/usr/sbin/useradd -d /home/$user_name -m -g admin 
>> $user_name";
>
>
> Also, 'useradd' command reads defaults from /etc/default/useradd, and new 
> accounts have SHELL set to /bin/sh.
> Image admin needs to set SHELL=/bin/bash in /etc/default/useradd, or useradd 
> command in Ubuntu.pm needs to include '--shell /bin/bash' option.
>
> Thanks.
>
>
> --
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
>
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.

Reply via email to