Friday, 19 March 2021

How To Create User with Gecos/Comment and Add in a Group in CentOS 7



A new user account is created with a group. The group name is same as account name and the user is the only member of this group. The -g [Primary Group] and -G [Secondary Group] options allow to add the user in primary and secondary group and the -c (--comment) option allows to add a short description/User Full Name/GECOS for the new user.