Originally Posted by saravanakumar
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
AuthName "please enter password"
<Limit GET POST>
require user admin
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.