file permissions in ubuntu
Hi
Im setting up a lamp server. using ubuntu, i think its worked /var/www is the document root folder from what i understand i just wish to check by dragging and dropping a phpinfo.php file into there. but i have file permission problems in changing any file in the folder and by puting anything in the folder im veiwing the folder from " places " and the file browser, and under properties tab it said you must be a root user. how do i log in through terminal, and change the requested file permission for that particular folder. :) ty for your time |
ive figured it out
cd /var/www chmod a+rw /var/www :) |
Do not change the permissions for the folder. Use terminal to copy the file in folder as root. Do it using sudo.
sudo cp /path/to/phpinfo.php /var/www You will need the password of user that you are logged in as. |
All times are GMT -5. The time now is 02:32 PM. |