Bugzilla – Bug 82
sudo useradd .... produces unexpected results
Last modified: 2004-08-05 22:06:18 MDT
if you run this command on HP-UX (v11.0) it adds all groups to the user and not just what are specified: sudo useradd -m -d "/home/x/xxx" -c "XXX User" -g group1 xxx if you run this as root then it only adds it to the right groups ......
That sure sounds like a bug in useradd, not sudo. Could it be taking the default for secondary groups from the invoking user? If so, that would be very strange. You might run "useradd -D" and see what your defaults are set to.
Unable to reproduce on a patched HP-UX 11.00 system.