Skip to main content
Markup fixed
Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

It sounds like you want to add an existing user to another group. Use usermodusermod to do that - usermod -a -G ubuntu www-data The

usermod -a -G ubuntu www-data 

The change will be in the /etc/group/etc/group file though. You can check it with id www-dataid www-data and groups ubuntugroups Ubuntu commands. Also make sure to, use the upper case G-case G, or you will replace the existing primary group.

It sounds like you want to add an existing user to another group. Use usermod to do that - usermod -a -G ubuntu www-data The change will be in the /etc/group file though. You can check it with id www-data and groups ubuntu commands. Also make sure to use the upper case G or you will replace the existing primary group.

It sounds like you want to add an existing user to another group. Use usermod to do that -

usermod -a -G ubuntu www-data 

The change will be in the /etc/group file. You can check it with id www-data and groups Ubuntu commands. Also, use the upper-case G, or you will replace the existing primary group.

Source Link
user103944
  • 410
  • 2
  • 4

It sounds like you want to add an existing user to another group. Use usermod to do that - usermod -a -G ubuntu www-data The change will be in the /etc/group file though. You can check it with id www-data and groups ubuntu commands. Also make sure to use the upper case G or you will replace the existing primary group.