to modify a user a user information on shell you type
usermodhere's what i learn, to assignment a group to user, you type
usermod -G groupname usernamehere's the catch, it will remove all the other group the user is in.
Another thing that I learn,is that to append, a group to a user, on shell, use the -a parameter.
So to append group to user, type:
usermod -aG groupname usernameone more thing, always add the -a parameter, before -G, for some reason, -G assumes that -a is a group. so it is always
usermod -a -G groupname usernamebut never
usermod -aG groupname username
usermod -Ga groupname usernamecould be an ubuntu bug.
usermod -G -a groupname username
No comments:
Post a Comment