The chown
command has the following syntax:
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
whoami
This will return your current user name. Then issue this command to determine your group memberships
groups username
Assuming that your username is “myuser”, run:
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:
sudo chown -R root:myuser /var/lib/php/session
MySQL manages connections to the database server through the use of a socket file, a special…
To remove the .html extension from your urls, you can use the following code in…
Use free/paid SSL certificates https://www.sslforfree.com Enable SSL Module Replace 'default-ssl' with the real site name…
Create archive of all files under public_html directory ignoring all files and folders including text…
To install some file *.tar.gz, you basically would do: Open a console, and go to…
How to Save: To save in nano use "CTRL-O", then "CTRL-X". Tip: Replacing sudo nano with gksudo gedit gives you a…