fbpx

Cambiar dueño de var/www

February 19, 2008

you might not be running as root and root is most likely owner – which disallows you the right to change permissions. execute the following

cd /var
su
“enter password for root”
chown -R john www or /www
now maybe after successful
chmod -R 775 www or /www

A little info:
chown allows for changing the owner – you must be root to change the ownership if root is the owner 🙂
chmod 775 does this U+G
+O User+Group+Others 7 = read write execute 5 = read and execute

change john to YOUR username (the one you log in as)

-R tells the commands to make the internal files of the directory “owned” by John as well.
read =1 write=2 execute=4 for a total of 7 for all permissions granted to UGO would be 777 (NOT recommended)

avatar
Gonzalo Escribano

Ver entradas

Most Recent

June 9, 2022

¿Qué son las DAO y cuáles son sus beneficios?

Es común en la historia contemporánea que haya cambios a partir de los avances en el campo de la...

Read More

June 2, 2022

¿Qué son las DeFi y por qué son el futuro de las finanzas?

Es común en la historia contemporánea que haya cambios a partir de los avances en el campo de la...

Read More

May 27, 2022

How to start a successful product build from scratch?

Creating a product from scratch could be a huge challenge. To achieve your business goals it’s important to develop...

Read More