Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wtmp(5) [ultrix man page]

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

Files
See Also
       last(1), lastcomm(1), login(1), who(1), ac(8), init(8)

																	   utmp(5)

Check Out this Related Man Page

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

Files
See Also
       last(1), lastcomm(1), login(1), who(1), ac(8), init(8)

																	   utmp(5)
Man Page

15 More Discussions You Might Find Interesting

1. SCO

SCO utmp file

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)
Discussion started by: scott_williams1
1 Replies

2. UNIX for Dummies Questions & Answers

logout command

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)
Discussion started by: raguramtgr
6 Replies

3. UNIX for Dummies Questions & Answers

??? Log file users login and logout..???

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)
Discussion started by: chanfle
1 Replies

4. Shell Programming and Scripting

Logins-logouts

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)
Discussion started by: aekaramg20
1 Replies

5. UNIX for Dummies Questions & Answers

setup a logfile for user login/logout ???

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)
Discussion started by: pwd
3 Replies

6. UNIX for Advanced & Expert Users

/etc/utmp file does not get updated with boot up details

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)
Discussion started by: jyoti_mil
1 Replies

7. AIX

Aix Server Restarted

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)
Discussion started by: manoj.solaris
2 Replies

8. Shell Programming and Scripting

Delete Duplicate records from a tilde delimited file

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)
Discussion started by: irshadm
5 Replies

9. UNIX for Dummies Questions & Answers

get all user's login time

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)
Discussion started by: alif
5 Replies

10. UNIX for Advanced & Expert Users

system slows after bootup for some time

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)
Discussion started by: cjjoy
1 Replies

11. Emergency UNIX and Linux Support

LAST command with Year

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)
Discussion started by: kkeng808
4 Replies

12. Solaris

How to Restrict user login after certain time in Solaris??

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)
Discussion started by: alessandro31
7 Replies

13. BSD

How to get the FreeBsd system information?

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)
Discussion started by: forumguest
2 Replies

14. Shell Programming and Scripting

how to remove particular records from a file???

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)
Discussion started by: siteregsam
6 Replies

15. Shell Programming and Scripting

Bashing of 2 Files

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)
Discussion started by: znesotomayor
3 Replies