-Ingroup vs --Ingroup
Instead of: Sudo Adduser --Ingroup Hadoopgroup Hadoopuser I Did a: Sudo Adduser -Ingroup Hadoopgroup Hadoopuser Am Ok to Go? or the Single - Will Cause a...
Instead of:
sudo adduser --ingroup hadoopgroup hadoopuser
I did a:
sudo adduser -ingroup hadoopgroup hadoopuser
am 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.