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
