LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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
 
Old 04-28-2009, 03:37 AM   #2
immylinux
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
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

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