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)
hi all...
only one question....
what is the file...where show me records login and logout of the unix user's..??
thank you....
I waiting for response... (1 Reply)
Hi everybody, im a newer, i want to setup a logfile to capture information about user login/logout (and some other events ex: a user ftp, run a speacial command) on my system in HP-UX, pls help me.
i think only edit file /etc/syslog.conf but dont know how to do it.
Help me. (0 Replies)
Hi everybody, im a newer, i want to setup a logfile to capture information about user login/logout (and some other events ex: a user ftp, run a speacial command) on my system in HP-UX, pls help me.
i think only edit file /etc/syslog.conf but i dont know how to do it.
Help me. (3 Replies)
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)
Hi,
i'm trying to configure /etc/syslog.conf for log user access.
In debian i add:
auth,authpriv.* @serverName
I don't know the correct Aix syntax for syslog :(
My @serverName get the log successfully..
I need to log correct/incorrect login attempts.
Thanks (5 Replies)
Hi,
Can you please let me know how can and where we will find the logs. ie,which user is login and logout from server and by using which ip address they accessed server.
please let me know the steps and folder, file names to trace the logs from server . we are using System = SunOS 5.10.
Please... (10 Replies)
Hi I'm new to Shell scripting .Can anyone please help me how to capture user's login and logout details and load them into a table...
we are using Oracle DB on UNIX:confused: (3 Replies)
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)
Hi,
How can I find out the login and logout time of the old UNIX session/user?. (2 Replies)
Discussion started by: sharif
2 Replies
LEARN ABOUT MINIX
utmp
UTMP(5) File Formats Manual UTMP(5)NAME
utmp, wtmp - logged in users, login and logout history
SYNOPSIS
#include <sys/types.h>
#include <utmp.h>
DESCRIPTION
The files /etc/utmp and /usr/adm/wtmp respectively contain the currently logged in users, and the history of logins and logouts.
Each file is an array of the following structure defined in <utmp.h>:
struct utmp {
char ut_user[8]; /* user name */
char ut_line[12]; /* terminal name */
char ut_host[16]; /* host name, when remote */
time_t ut_time; /* login/logout time */
};
#define ut_name ut_user/* for compatibility with other systems */
The structure contains more fields than those listed, but they are only of interest to init and login. Note that the ut_name field is a
compatibility alias for ut_user, it is actually better to use it.
A login entry is completely specified. A logout entry has a null string for ut_name. A shutdown or reboot entry has an ut_line field con-
taining a "~" (tilde). The ut_name field is usually the name of the program that did the shutdown, or "reboot" at reboot. This is a bit
confusing, but note that there should always be two such entries. If you see just one entry then the system has crashed, if you see two
entries then the system was properly shut down and later rebooted.
FILES
/etc/utmp Currently logged in users.
/usr/adm/wtmp History of logins and logouts.
SEE ALSO who(1), ttyslot(3).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
UTMP(5)