ABC LEARN - Add/changing a user group in linux - 0 views
-
abclearn on 06 Feb 17This command is used modify the user attributes like user id, group, name etc. Syntax: Usermod [options] username The following are the list of options to modify already existing user attributes. -d this option is used to change the working directory of the user -g this option is used to change the primary group of the user -G this option is used to change the secondary group of the user -L this option is used to lock the user account. -U this option is used to unlock the user account. -s this option is used to assign shell to the user. -e this option is used to assign specific expiry date to the particular user. -u this option is used to modify the user id of the user. -l this option is used to modify the login name of the user. -c this option is used to change the comment or assign the comment to the particular user.