03-10-2008
Login and logout time of a session
Hi,
How can I find out the login and logout time of the old UNIX session/user?.
9 More Discussions You Might Find Interesting
1. Red Hat
Hello all -
I'm finishing up a script that I wrote.
This is what I did:
I added some lines to the .bash_profile that will call my startup script:
cd $HOME/startup
./startup.scr
This startup script will create some directories, move some files, and then startup an application:
cd... (4 Replies)
Discussion started by: Heron
4 Replies
2. UNIX for Dummies Questions & Answers
Hi all
I know ho I can run a script when a user logs in, viz using the .login or .profile file, however what can I use to run a script when a user logouts ?
Thanks
J :confused: (1 Reply)
Discussion started by: jhansrod
1 Replies
3. Shell Programming and Scripting
what function would tell me that a user has logged in or out?
i already know from my script the users name
i already know in real time there was an event
how an I tell if that event was a login or logout? Any ideas?
# i did try comparing the file sizes for change but various users may... (8 Replies)
Discussion started by: nortypig
8 Replies
4. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
5. Shell Programming and Scripting
hi,
im executing one script i,e sh test.sh
i want to log out the sessing after script execution.
and i do't want to user command like this.
sh test.sh ; exit
can i exit the session with the use of script
pl help (1 Reply)
Discussion started by: arvindng
1 Replies
6. OS X (Apple)
Dear readers
I use SnowLeopard 10.6.2 and need to do some special tasks at login and logout of an sepcific user.
My problem is, how do I send a string "login" respectively "logout" from computer "A", where the login/logout script runs, to computer "B" where some other tasks need to be done.
... (3 Replies)
Discussion started by: tthaler
3 Replies
7. Shell Programming and Scripting
Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies
8. UNIX for Dummies Questions & Answers
hi,
i want to make a session logout in c++/unix which will redirect the user to the login page if the user is idle for 5mins (1 Reply)
Discussion started by: anubhav sharma
1 Replies
9. Shell Programming and Scripting
Hello Experts,
Am very much new to the bash shell scripting.I need a small favour,I need a shell script to get Login and Logout information in a csv file.Can some one help me out please.
Regards, (1 Reply)
Discussion started by: ahmed.vaghar
1 Replies
LEARN ABOUT FREEBSD
pam_lastlog
PAM_LASTLOG(8) BSD System Manager's Manual PAM_LASTLOG(8)
NAME
pam_lastlog -- login accounting PAM module
SYNOPSIS
[service-name] module-type control-flag pam_lastlog [options]
DESCRIPTION
The login accounting service module for PAM, pam_lastlog provides functionality for only one PAM category: session management. In terms of
the module-type parameter, this is the ``session'' feature.
Login Accounting Session Management Module
The login accounting session management component provides functions to initiate (pam_sm_open_session()) and terminate
(pam_sm_close_session()) sessions. The pam_sm_open_session() function records the session in the user accounting database. The
pam_sm_close_session() function does nothing.
The following options may be passed to the authentication module:
debug syslog(3) debugging information at LOG_DEBUG level.
no_warn suppress warning messages to the user.
no_fail Ignore I/O failures.
SEE ALSO
last(1), w(1), getutxent(3), login(3), logout(3), pam.conf(5), lastlogin(8), pam(8)
AUTHORS
The pam_lastlog module and this manual page were developed for the FreeBSD Project by ThinkSec AS and NAI Labs, the Security Research Divi-
sion of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BSD
January 21, 2010 BSD