Ticket #8985 (new defect)
Use 'addgroup' instead of 'groupadd' in installer
|Reported by:||maronz||Owned by:|
When testing one of the generic Linux builds (e.g. 'VirtualBox-4.0.8-71778-Linux_x86.run') on a minimal distribution that lacks the 'groupadd' command the 'vboxusers' group will not be created.
Example: TinyCoreLinux, which is based on BusyBox (download: http://distro.ibiblio.org/tinycorelinux/3.x/release/tinycore-current.iso, currently at version 3.6)
The issue could be easily avoided if on those systems in 'install.sh' a command like "addgroup -S $GROUPNAME" instead of "groupadd $GROUPNAME" would be executed.
After checking a few of the "big" (or should one rather say "bloated") distributions (e.g. Natty Narwhal or FC-14) I've realized that not all are having 'addgroup' in their base, so first a check of the availability of the respective command would be required.