Welcome to the most active Linux Forum on the web.
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 11-16-2011, 12:38 AM   #1
Registered: Dec 2010
Posts: 33

Rep: Reputation: 0
How to view users login details?

Dear all
in my web server, i have restrict one Directory (admin_ric) to request username/password to run it's default web page in it. for this, i created .htaccess and .htpasswd files in this Directory and add 5 username/password to .htpasswd. every time, everyone want to see http://......../admin_ric a window appears on page and request username and password and only those username that add to .htpasswd (in that directory) can view default page.

now, i want to audit who and when log in to this Directory and/or every bad log in, just to this Directory not to server?

please help me.
Old 11-16-2011, 04:29 AM   #2
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Old 11-16-2011, 04:48 AM   #3
Registered: Dec 2010
Posts: 33

Original Poster
Rep: Reputation: 0
Dear pavi_kanetkar
thanks for youe attention. but this link is about ssh login.
Old 11-16-2011, 05:34 AM   #4
Registered: Oct 2011
Posts: 44

Rep: Reputation: Disabled
Check the log of your webserver (access/error) under /var/
Old 11-16-2011, 06:09 AM   #5
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,272

Rep: Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692Reputation: 1692

You could setup a different logfile to log authenticated users. To do this you need to set an environment variable and use it to your CustomLog definition. So in httpd.conf (or whatever is the apache config file) use:
SetEnvIf Remote_user "-" noauth
CustomLog logs/auth_users.log combined env=!noauth
To see the bad logins, grep error_log:
grep authentication /var/log/httpd/logs/error_log

Last edited by bathory; 11-16-2011 at 06:19 AM.


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
[SOLVED] Last login all user details with last login date needed gadhave.vikas Other *NIX 3 06-10-2011 01:50 PM
[SOLVED] Unable to view remote hosts details in Nagios Browser Page vikas027 Linux - Software 6 09-08-2010 12:44 PM
Folder View or graphical view login using ssh caliskans Linux - Newbie 2 07-05-2009 04:57 PM
Firefox browse box - view details ivanatora Linux - Software 1 04-06-2009 03:49 PM
how to view the log details of samba users sravanth.svk Fedora 0 10-26-2006 09:31 AM > Forums > Linux Forums > Linux - Newbie

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