utmp(5) File Formats Manual utmp(5)Name
utmp, wtmp - login records
Syntax
#include <utmp.h>
Description
The file records information about who is currently using the system. The file is a sequence of entries with the following structure
declared in the include file:
struct utmp {
char ut_line[8]; /* tty name */
char ut_name[8]; /* user id */
char ut_host[16]; /* host name, if remote */
long ut_time; /* time on */
};
This structure gives the name of the special file associated with the user's terminal, the user's login name, and the time of the login in
the form of
The file records all logins and logouts. A null user name indicates a logout on the associated terminal. A terminal referenced with a
tilde (~) indicates that the system was rebooted at the indicated time. The adjacent pair of entries with terminal names referenced by a
vertical bar (|) or a right brace (}) indicate the system-maintained time just before and just after a command has changed the system's
timeframe.
The file is maintained by and Neither of these programs creates the file, so, if it is removed, record-keeping is turned off. It is summa-
rized by
FilesSee Alsolast(1), lastcomm(1), login(1), who(1), ac(8), init(8)utmp(5)
Check Out this Related Man Page
utmp(4) Kernel Interfaces Manual utmp(4)NAME
utmp, wtmp - Login records
SYNOPSIS
#include <utmp.h>
DESCRIPTION
The utmp file records information about who is currently using the system. The file is a sequence of utmp entries, as defined in struct
utmp in the utmp.h file.
The utmp structure gives the name of the special file associated with the user's terminal, the user's login name, and the time of the login
in the form of time(3). The ut_type field is the type of entry, which can specify several symbolic constant values. The symbolic constants
are defined in the utmp.h file.
The wtmp file records all logins and logouts. A null user name indicates a logout on the associated terminal. A terminal referenced with
a tilde (~) indicates that the system was rebooted at the indicated time. The adjacent pair of entries with terminal names referenced by a
vertical bar (|) or a right brace (}) indicate the system-maintained time just before and just after a date command has changed the sys-
tem's time frame.
The wtmp file is maintained by login(1) and init(8). Neither of these programs creates the file, so, if it is removed, record keeping is
turned off. See ac(8) for information on the file.
FILES RELATED INFORMATION ac(8), init(8), last(8), lastcomm(8), login(1), who(1), wtmpconvert(8). delim off
utmp(4)
I am tring to recover a SCO system remotely, when I try to login with multiple user support, i get the following message
No UTPM entry, you must execute from the lowest level (sh)
Can anyone shed some light on this issue. I have never came seen this error before.
Also it will allow me to... (1 Reply)
hi all
The "last" command shows the last login time of the user. is there any command for last logout time.
as usual, replies are appreciated. thanks boys.
raguram R (6 Replies)
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)
I want a script that checks the logins and logouts in a system.Is there a way to keep the logins and logouts in files and then compare them every e.g. 10 seconds?
for tcsh. (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 i dont know how to do it.
Help me. (3 Replies)
In a frequent interval the system bootup is not updating the /etc/utmp file with the system boot details.
This leads to blank output of who - b command.
What can be the reason for the same? (1 Reply)
Hi,
I want to know how can we come to know who has system rebooted, I have given the command last but it showing the last user has login and logout after some time,but reboot command is showing after 10 mins,how can we trace that it is automatically rebooted or rebooted by some person, (2 Replies)
Hi All,
I want to delete duplicate records from a tilde delimited file. Criteria is considering the first 2 fields, the combination of which has to be unique, below is a sample of records in the input file
1620000010338~2446694087~0~20061130220000~A00BCC1CT... (5 Replies)
hi all, i need yor help!!!:D
i am a newbie in programming
i want to get user list and their login time...
i have search and learn about pswd and utmp, but i only can get usr list without their login time...
do you have an idea to solve my problem?
thanx (5 Replies)
Hi,
I am using a Linux system running at run level 3. I am finding a wired problem, once the system boots, the system terminal slows down, I need to type the characters repeatedly to enter my login and password info. Also running any commands takes time, it stays in this condition for some... (1 Reply)
Hi Guys, I'm trying to identify the last logins by all the users in the system in AIX. the last command gives me the output, but there is no year displayed for it . Since there is a duplication of months i mean Apr 2010 and Apr 2009 also its giving me inaccurate data.. Is there a way I can filter... (4 Replies)
My OS is Solaris 10, I would like to know if there is any way to restrict user login to the system (either remote or console login) after certain time, say 20:00 on Mon to Fri and whole day on SAT and SUN???
Sorry that I am a new user on Unix System.
Any comment is fully appreciated!!!
Alex (7 Replies)
Hi,
How to get the FreeBsd system hardware and software basic information using terminal command with guest login?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS... (2 Replies)
I need to remove header(H) and trailer(T) from a file keeping other records as such.
The source file will look as below
I have to remove
H|20120203_000500|20120203_000500 and
T| 10111246
from the above file. Please let me know how to do... (6 Replies)
Hi Everyone,
Seeking for your assistance on how to bash the file 1 to file 2 records and output the same records with specific field to display to file3.
Example: Imagine we have many Files and records in File 1 and the File2 is only 1 file but many records.
File1... (3 Replies)