tracing a user's session


 
Thread Tools Search this Thread
Operating Systems HP-UX tracing a user's session
# 1  
Old 11-24-2004
tracing a user's session

hi,

does anyone knows how to trace a user session on a unix system:
i want to log these things

1- login
2- date of starting session
3- date of closing session

i've tryed who and last but they don't give closing time of session

regards
hmaiida
# 2  
Old 11-24-2004
last is the command you require....
For me (SuSE 8.2 here - HP-UX 10.20 as far as I remember - i'm not at work at the moment so can't check) it shows amongst other things username, session start (date+time), session close (time only), plus duration.

Edit: Just to illustrate - sample output from "last" on HP-UX 10.20 (now that I'm at work!)

Code:
auser    ttyq8        Thu Nov 25 10:38 - 21:48  (11:09)
buser    ttyq0        Thu Nov 25 09:31   still logged in
cuser    ttyq8        Wed Nov 24 10:15 - 17:09  (06:54)
.
.
.

Cheers
ZB

Last edited by zazzybob; 11-25-2004 at 06:47 AM..
# 3  
Old 11-27-2004
You can read about the auditing options that exist under HPUX in this document at docs.hp.com. Follow the document to:

-->Administering a System: Managing System Security
----->Trusted System Security

When you built your system, did you enable the "trusted" option?

Once auditing is enabled, user login and logout times are one of the default actions that are recorded. The following are the event types which default enabled for auditing:

admin - logs all administrative and privileged events
login - logs all system login and logout attempts
moddac - logs all modifications of object access controls

The referenced document walks you through setup and use of the audit functions in HPUX. Fair warning, there is an overhead cost associated with running HPUX/Trusted.

Cheers,

Keith
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Network User Session

dear colleagues, please help, i have a linux server (linux 5.3) running oracle 10g database for application. there are 98 users who are using that oracle application over LAN. but during the working hours the user session is increased (min 150 users) bcos one user is working on different client... (7 Replies)
Discussion started by: Abrar
7 Replies

2. Solaris

Number of process per user session

Hi All, Do we have any option through which we can limit the number of process which can be started by single user session. Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

3. AIX

user session restriction

hi, I am facing a problem from the remote system if i login to my AIX5.3 machine as root (thru telnet) the session does not expire for 2 hours even if the session is kept ideal But whenever i do the same thing from some other user then the session is lost within 10 minutes (if session is kept... (2 Replies)
Discussion started by: pchangba
2 Replies

4. AIX

user session restriction

I want to restrict user's loging according to number of session. example the user named "patrik" can be login concurrently from 12 stations thru telnet the 13th if some body tries to telnet 13th session it should not allow, until any of the 12 sessions are closed. is it possibel ...i think... (2 Replies)
Discussion started by: pchangba1
2 Replies

5. Linux

Launch application in gnome session of another user.

A gnome session is launched by UserA of System A, I am connected to userB of System B(or A) through PUTTY. I want to launch an application for eg: gedit through Putty in the display of system A. how can I achieve this. for eg:- root is logged in to System A, with gdm. DISPLAY=0.0, ip =... (4 Replies)
Discussion started by: Sivaswami
4 Replies

6. UNIX for Advanced & Expert Users

tracing a user input

Hi, i need to get a log of all the commands typed and output of those commands fired by a specific user on my sun machine. Also i need to trace all commands and inputs given from a specific IP on my machine. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 Replies

7. Solaris

kill user session

how do i kill a user session (10 Replies)
Discussion started by: fsmadi
10 Replies

8. Solaris

Tracing a user and logging his actions

Dear All, I want to enable the tracing for a user and logging all things he do in a log file.......... Thaaanks (2 Replies)
Discussion started by: adel8483
2 Replies

9. UNIX for Dummies Questions & Answers

Deleting a user session

I logged on yesterday and ran something that made my ID hang. I X'd out of the session and then logged on again and my ID from the original session is still there. I checked again this morning and the ID is still there (I checked using the WHO command). How can I kill that first session using... (7 Replies)
Discussion started by: jbrubaker
7 Replies

10. UNIX for Advanced & Expert Users

User login session

Having a problem on AIX 4.3.3 with the following error when more than 2 users try and sign onto the server. 3004-312 All available login sessions are in use. ???? (1 Reply)
Discussion started by: Docboyeee
1 Replies
Login or Register to Ask a Question