LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file permissions in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-in-ubuntu-722182/)

immylinux 04-28-2009 03:32 AM

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

immylinux 04-28-2009 03:37 AM

ive figured it out

cd /var/www
chmod a+rw /var/www

:)

linuxlover.chaitanya 04-28-2009 03:38 AM

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.