LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2011, 08:57 AM   #1
saravanakumar
LQ Newbie
 
Registered: Jul 2011
Posts: 28

Rep: Reputation: Disabled
how to get mail alert when http path /var/www/html get accessed


Dear Sir.
i had set passwd for http path admin by using these command


htpasswd -c /etc/httpd/conf/.htpasswd admin

and made password attentication by using


cat >> /var/www/html/admin/html/.htaccess << EOF
AuthUserFile /etc/httpd/conf/.htpasswf
AuthName "please enter password"
AuthType Basic
<Limit GET POST>
require user admin
</Limit>
EOF




BUT I COULD INT ABLE TO GET MAIL ALERT WHEN THE PATH
/var/www/html/admin get accessed by someusers like ,modified.edited,deleted the path
can somebody help me how can i resolve the problem


THanks&regards
saravanakumar

Last edited by saravanakumar; 07-26-2011 at 08:59 AM.
 
Old 07-26-2011, 03:45 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,405

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
Quote:
Originally Posted by saravanakumar View Post
Dear Sir.
i had set passwd for http path admin by using these command

htpasswd -c /etc/httpd/conf/.htpasswd admin

and made password attentication by using

cat >> /var/www/html/admin/html/.htaccess << EOF
AuthUserFile /etc/httpd/conf/.htpasswf
AuthName "please enter password"
AuthType Basic
<Limit GET POST>
require user admin
</Limit>
EOF

BUT I COULD INT ABLE TO GET MAIL ALERT WHEN THE PATH
/var/www/html/admin get accessed by someusers like ,modified.edited,deleted the path
can somebody help me how can i resolve the problem
Don't shout, and again there are NOT JUST SIRS on this site.

What do you think that .htaccess will do, based on what you've done? All that will do is ask for user ID/password. And again, your questions aren't very clear. What kind of access are you attempting to get notified on? Each web page hit (which is what .htaccess is for), or every time someone goes into that directory via terminal? The two are different.

If you want notification on a web page hit, either code your web page to send an email when someone logs in to it, or read the apache logs and parse them out, and email you from that program. SSH/terminal access? Either buy Tripwire (or another similar product) to watch the files and alert you, or write your own to look at modification dates/times on the file(s) in question, and email you.

Again, you need to ask a clear question, and post some follow up, which you've not done in alot of your previous threads.
 
  


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
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 08:43 AM
index.html is not noticed in /var/www/html xviddivxoggmp3 Red Hat 1 04-23-2006 06:30 PM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 11:02 AM
ownership of /var/www/html haobaba1 Linux - Security 1 08-04-2003 02:58 PM
chmod of /var/www/html alTereD Linux - Security 1 12-16-2002 02:43 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration