The chown
command has the following syntax:
1 |
chown username:groupname directory |
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
1 |
whoami |
This will return your current user name. Then issue this command to determine your group memberships
1 |
groups username |
Assuming that your username is “myuser”, run:
1 |
groups myuser |
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:
1 |
sudo chown -R root:myuser /var/lib/php/session |