LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-16-2002, 08:33 AM   #1
alTereD
LQ Newbie
 
Registered: Oct 2002
Location: Qc ,CA
Distribution: Mandrake 9.0
Posts: 2

Rep: Reputation: 0
chmod of /var/www/html


Hi,
What is the best chmod for a web server folder?
I want to be able to update page via ftp (i need permission to overwrite file as root and as an user).


Thx alot
 
Old 12-16-2002, 02:43 PM   #2
indi
LQ Newbie
 
Registered: Dec 2002
Distribution: redhat
Posts: 14

Rep: Reputation: 0
i can suggest

chown -R root.apache /home/www.html

find /home/www/html -type f -exec chmod 664 {} \;
find /home/www/html -type d -exec chmod 2775 {} \;

---

putting g+s will make any new file with apache as group.

---

now add your editors / webmasters in apache group.

make sure FTP creates 664 (file) and 775 (directory) by default.

I will suggest to use secure copy or WinSCP in place of FTP.
 
  


Reply


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
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 11:02 AM
Can't save files to /var/www/html/ Panopticon Linux - Newbie 14 09-12-2003 02:03 AM
should var/www/html be accessible to root only? linuxfond Linux - Newbie 1 09-06-2003 02:00 PM
ownership of /var/www/html haobaba1 Linux - Security 1 08-04-2003 02:58 PM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:53 AM.

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