The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
whole day commands executed by particular user naree SUN Solaris 1 03-05-2008 03:45 AM
I want to know whole day commands executed by particular user naree SUN Solaris 3 03-04-2008 01:55 AM
Capture of all commands issued by the user “root” elieifrah@gmail UNIX for Advanced & Expert Users 4 03-19-2007 07:55 AM
Capturing commands executed by user bhaven.haria UNIX for Advanced & Expert Users 3 09-30-2006 06:46 AM
user executing priveleged commands 30177005 UNIX for Dummies Questions & Answers 2 05-19-2004 09:23 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2006
Registered User
 

Join Date: Feb 2006
Posts: 1
Capture user imput commands

Hi all,
I have a problem which needs to be solved soon because it affects auditing capabilities.
There is an application id that has to be used by other users for the purpose of production support.
The application user id uses C shell.
We allow users to switch to the application user id based on a netgroup and allow them to work as the application id.
But in order to enable auditing,at the end of a session - when the person logs out the session's history information is captured in a file and this is specified in the .logout file for the id.
But here's where the problem comes in.
When a session is improperly terminated,the session's history information is not captured.
And when the session times out due to inactivity also the history information is not captured.
Is there any way I could get the logs in the above two cases?
Using the script command is not allowed in this case and we have to work with the login shell as csh only.


Thanks.
Saran
Reply With Quote
Forum Sponsor
  #2  
Old 03-21-2006
Registered User
 

Join Date: Jul 2005
Location: Mt. Prospect, Illinois
Posts: 32
User input from .logout

I would suggest just relogging in with the same user id. That should result in the history commands being available as per the pre-logout state.

The second issue of the SHELL timing out is a curious one. I suggest resetting the environment "TMOUT" to zero "0". After you reset the TMOUT variable and export it the SHELL should no longer suffer through an unpredictable timeout.

Good luck!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0