Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-28-2009, 03:32 AM   #1
LQ Newbie
Registered: Mar 2009
Location: Southend On Sea Essex
Posts: 8

Rep: Reputation: 0
file permissions in ubuntu


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.


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
Old 04-28-2009, 03:37 AM   #2
LQ Newbie
Registered: Mar 2009
Location: Southend On Sea Essex
Posts: 8

Original Poster
Rep: Reputation: 0
ive figured it out

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

Old 04-28-2009, 03:38 AM   #3
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File permissions on an Ubuntu Server. algogeek Linux - Server 12 06-29-2009 03:11 AM
Help required in configuring local file permissions with samba on ubuntu 8.04 avinash.rao Ubuntu 2 09-13-2008 03:48 AM
file permissions for snare in ubuntu HelpMe2877 Linux - Newbie 1 09-10-2008 01:10 AM
Problem setting umask and default file permissions on ubuntu 7.04 server with xfs a2brute Linux - Server 1 05-22-2008 04:57 AM
file permissions unreadable - ubuntu edgy 6.10 pwrlftr220 Linux - Software 2 10-25-2006 05:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration