If you want to add existing user to a group and this group become the primary group for the user following is the syntax:
usermod -g
Example:
usermod -g dba oracle
What if you want to add this user to several group?
usermod -G
Take note: groupname is separated with comma and without space
Example:
usermod -G dba,dgdba,backupdba oracle
To check if it is registered successfully, use this command:
cat /etc/gshadow
No comments:
Post a Comment