LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-16-2011, 01:38 AM   #1
ahmadirad
Member
 
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, 05:29 AM   #2
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
https://help.ubuntu.com/8.04/serverg...anagement.html
 
Old 11-16-2011, 05:48 AM   #3
ahmadirad
Member
 
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, 06:34 AM   #4
linuxwin2
Member
 
Registered: Oct 2011
Posts: 44

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

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
@OP

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:
Code:
SetEnvIf Remote_user "-" noauth
...
CustomLog logs/auth_users.log combined env=!noauth
To see the bad logins, grep error_log:
Code:
grep authentication /var/log/httpd/logs/error_log
Regards

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


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


All times are GMT -5. The time now is 05:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration