Change ownership of the directory in ubuntu

The chown command has the following syntax:

So in your example command it is your primary group name you need to put To determine your current user name issue the command as below on a terminal

This will return your current user name. Then issue this command to determine your group memberships

Assuming that your username is “myuser”, run:

You will get something like:
myuser : myuser staff adm cdrom lpadmin admin

The first one after the : is your primary group. In this example it is “myuser”.

The command will be: