user mod

#useradd -g $GROUP $newUSER

# groupadd NewGroupName

            add secondary groups to a user, with the option “-G”

usermod -G $GROUP $USER 


            You can also remove a use from secondary group with:
 
gpasswd -d $USER $GROUP 

No comments:

Post a Comment