-ingroup vs --ingroup
By Emily Wilson •
Instead of:
sudo adduser --ingroup hadoopgroup hadoopuserI did a:
sudo adduser -ingroup hadoopgroup hadoopuseram OK to go? Or the single - will cause a problematic user.
1 Answer
adduser is a Perl script, using Getopt::Long. Unless explicitly told to do so, Getopt::Long will accept single-hyphen long options, and adduser doesn't tell it do so. So, -ingroup will work just as well as --ingroup.
Don't rely on this to work in the future, though.