Visit Jeremy's Blog.
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 10-23-2002, 02:08 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
editing and saving to /var/www/.......

I am attempting to edit my html files for apache while logged in as a regular user. The problem of course is the files are in /var/www/html which I can't save to unless I am logged in as root. I added "laurie" to the apache group (apache owns the directory) but I still can't save there. What do I have to do to save and edit files on that directory logged on as "laurie" ?
Old 10-23-2002, 02:57 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
i think this was posted in a thread here before...

but what you can do is create a directory called (or something else) 'html' under /home/laurie and then create a link to it under /var/www/html/. laurie takes control of /home/laurie/html/.
Old 10-23-2002, 04:01 AM   #3
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
what's the permissions on the directory? ( ls -la /var/www/ )

when you set the permissions, did you do this?

chown -R :apache /var/www/html


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
OpenBSD /var/www files gone Harpune *BSD 0 11-04-2005 02:06 AM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 05:37 AM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 12:02 PM
cannot read/write to /var/www eddi Linux - Newbie 1 02-04-2004 04:08 PM
thanks boss....... now i don't have a /var/www joesbox General 4 11-08-2003 02:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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