Ubuntu Add User To Group. Sudo usermod a g groupname username the a append switch is essential. To add an existing user jerry to ftp supplementary secondary group with usermod command using a option i e.
Since your user already exists this is not what you want. To add an existing user account to a group on your system use the usermod command replacing examplegroup with the name of the group you want to add the user to and exampleusername with the name of the user you want to add. Only reading full article gives you the complete guide on how to add user to group in linux i am using ubuntu 20 04 operating system but this operation will be the same on other linux.
Only reading full article gives you the complete guide on how to add user to group in linux i am using ubuntu 20 04 operating system but this operation will be the same on other linux.
Login to ubuntu server using ssh. Usermod a g examplegroup exampleusername for example to add the user geek to the group sudo use the following command. To add an existing user account to a group on your system use the usermod command replacing examplegroup with the name of the group you want to add the user to and exampleusername with the name of the user you want to add. To add an existing user jerry to ftp supplementary secondary group with usermod command using a option i e.