LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-29-2012, 12:06 AM   #1
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 86

Rep: Reputation: Disabled
Question How to Protect the Document root in Linux ?


Hi guyz ,

I am Using Centos 5.5 Box and Apache 2.2.4 version..,

I am going to share the directories using Apache and i would like to know Is there any other way to protect the Document root without .htaccess and .htpasswd method ?

Pls Guide me Guyz !


Regards
Bala
 
Old 11-29-2012, 04:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
anything in those files can be equally specified in the main httpd.conf file.

comparison here http://wiki.apache.org/httpd/Htaccess
 
Old 11-29-2012, 04:31 AM   #3
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 86

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
anything in those files can be equally specified in the main httpd.conf file.

comparison here http://wiki.apache.org/httpd/Htaccess

once again thanks chris ..
 
Old 11-30-2012, 01:21 AM   #4
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 86

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by bala.linuxtech View Post
once again thanks chris ..
Hi chris

I would like to know , any other method is there for protect the document root except .htaccess and .htpasswd method ?

pls help me

Regards
Bala.Linuxtech
 
1 members found this post helpful.
Old 11-30-2012, 01:23 AM   #5
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 86

Original Poster
Rep: Reputation: Disabled
Lightbulb

Quote:
Originally Posted by bala.linuxtech View Post
Hi chris

I would like to know , any other method is there for protect the document root except .htaccess and .htpasswd method ?

pls help me

Regards
Bala.Linuxtech
Chris

Please tell me , Is Apache server allows Online modification while sharing the files via apache ?

Thanks in advance

Regards
Bala.Linuxtech
 
1 members found this post helpful.
Old 11-30-2012, 02:31 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
see the Apache docs
for locking down a folder from the httpd.conf
KEEP SELinux set to ENFORCING

KEEP the docroot OWNED BY "APACHE "
 
  


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
Can I protect against root? peperp Linux - Security 12 10-23-2007 07:28 AM
how to protect root passwd from being changed somnathlinux General 5 08-27-2007 02:13 PM
Postfix: how to protect root user tommybrick Linux - Server 3 08-25-2007 10:06 AM
How can I protect root? nilecirb Linux - Security 18 11-07-2005 04:40 PM
Password protect a text document? PionexUser Linux - Security 2 11-19-2003 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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