LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-22-2011, 10:01 AM   #1
sahworld
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Need Track if any user close the windows of shell prompt


I have implemented a Central authentication and tracking system for managing login & track record of different systems.
I have one central authentication system running Centos 5.3, and have many systems running AIX5.3, AIX 5.2, AIX 6.1, RHEL 5.0, SOLARIS 10 and etc using ssh service (central server & different systems handshaking mechanism is “ssh without password”) where many people’s can login by central server using specific user ID of central server.
When any guys login into the central system by specific user id like “ahsan1919” then he will get a Menu (Prepared by Unix-Script) where put different systems Login ID with IP, just type 1a or 2a then automatically login into that server (like AIX 5.3) and then he worked many jobs and then exit from the server, that’s fine and working. My central system can track login & logout time in Central server (prepared by unix-script)
But when any guys login into any server through central server, and work many tasks and then closes the window (not type exit or logout command) or any application running on his shell, at this moments he close the window, then I didn’t get any log information.
So I need help.
Actually When any guys close the window then my central server not getting any information like login_logout_history information.
I attached sample snapsheets… Please anybody help me…
Menu example
1. FINACLE: CSIS (10.20.2.21
2. 1a. root
Unix Script sample
echo "$USER has logged-in into $CSISDR as oracle on `date`" >> $HOME/$USER.log
ssh oracle@drcsis
ssh oracle@drcsis "cat ~/.history/.sh_hist" > $HOME/.temp.log
sed '1,146d' $HOME/.temp.log >> $HOME/$USER.log
echo "$USER has logged-out into $CSISDR as oracle on `date`" >> $HOME/$USER.log

Please anybody help me…
 
Old 03-22-2011, 02:06 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You need to have the central server polling the output of
Code:
who
on each remote server. You can see who is connected remotely and keep a track of who's missing. That means keeping a central log of who went where - when, of course.

Alternatively, you could have the remote machines tell you when people log out. Write a script that mails the central server with the relevant details, and gets run automatically on the remote machine when the user closes their login shell.

Read through this thread.

Last edited by smoker; 03-22-2011 at 02:22 PM.
 
  


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] what format should I rip a CD track in for a Windows user? newbiesforever Linux - General 9 04-05-2010 04:11 PM
Shell Script for keeping track when guest user logs on system... computergeek7 Programming 1 04-01-2010 03:10 PM
passing parameters from a unix shell prompt into a windows cmd.exe prompt nano2 Programming 1 09-01-2009 12:26 PM
howto: verify a user/pass at the shell prompt. exodist Linux - Security 8 08-16-2006 06:16 AM
SMB, user prompt , I can not conect to linux from windows. fabianCastle Linux - General 3 05-05-2003 09:12 PM

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

All times are GMT -5. The time now is 10:50 PM.

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