- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- utmp/utmpx/utmps vs wtmp/wtmps
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2005 07:30 PM
тАО01-07-2005 07:30 PM
utmp/utmpx/utmps vs wtmp/wtmps
Have read many manpages, I can't understand the relation between them.
I have some question:
1) Daemon utmpd write in-memory records into utmp or utmpx?? When I execute:
/sbin/init.d/utmpd stop
/sbin/init.d/utmpd start
I found the mtime of utmp don't be updated ~~~ however utmpx is updated, utmps contend increased.
root@xkbqd06# ll ut*
-rw-r--r-- 1 root root 1140 Jan 6 21:59 utmp
-rw-r--r-- 1 root root 16200 Jan 7 10:47 utmps
-rw-r--r-- 1 root root 3780 Jan 8 11:33 utmpx
root@xkbqd06# /sbin/init.d/utmpd stop
utmp daemon stopped
root@xkbqd06# ll ut*
-rw-r--r-- 1 root root 1140 Jan 6 21:59 utmp
-rw-r--r-- 1 root root 14904 Jan 8 12:05 utmps
-rw-r--r-- 1 root root 3780 Jan 8 12:05 utmpx
Manpage tell me the use of utmps would be discontinued in future releases.
Is it a historical problem?
2) In HP-UX accounting, connect time accounting is handled by utmpd ??
3) Who write wtmp/wtmps files, just as btmp/btmps ? OS kernel or utmpd ?
I can't find useful info in manpages.
Any help is appreciated . :-)
All the best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2005 02:13 PM
тАО01-08-2005 02:13 PM
Re: utmp/utmpx/utmps vs wtmp/wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2005 04:04 PM
тАО01-08-2005 04:04 PM
Re: utmp/utmpx/utmps vs wtmp/wtmps
as the man page states these files hold user and account information.
As far as I am aware each action ie incorrect login will write various info into the utmp, btmp and wtmp files.
The info in these files for example will be used when running something like the write command.
not sure of the question so hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 09:53 PM
тАО01-09-2005 09:53 PM
Re: utmp/utmpx/utmps vs wtmp/wtmps
1)utmpx is used to replace utmp.
utmp and utmpx is updated simultaneously.
utmpd is used to replace utmp/utmpx. when utmpd is not running, in-memory utmpd records are writed into utmps.So, when I stop/start /sbin/init.d/utmpd, the synchronizationthe between utmps and utmpx occurs and their mtime is changed.
2)In HP-UX accounting, connect time accounting is handled by utmpd/login/init(other are unknown now).
and Process accounting is performed by the HP-UX system kernel.
3)utmp/utmpx/wtmp/wtmps/btmp/btmps are maintained by login&init.
See this, I runing at level 2.
root@xkbqd01# ll /etc/ut* /var/adm/wt*
-rw-r--r-- 1 root root 840 Jan 6 11:14 /etc/utmp
-rw-r--r-- 1 root root 11664 Jan 10 15:56 /etc/utmps
-rw-r--r-- 1 root root 2660 Jan 10 15:56 /etc/utmpx
-rw-rw-r-- 1 adm adm 123600 Dec 30 11:34 /var/adm/wtmp
-rw-rw-r-- 1 adm adm 4564 Jan 10 14:54 /var/adm/wtmps
root@xkbqd01# init 3
root@xkbqd01# ll /etc/ut* /var/adm/wt*
-rw-r--r-- 1 root root 840 Jan 10 16:10 /etc/utmp
-rw-r--r-- 1 root root 11664 Jan 10 15:56 /etc/utmps
-rw-r--r-- 1 root root 2660 Jan 10 16:10 /etc/utmpx
-rw-rw-r-- 1 adm adm 123840 Jan 10 16:10 /var/adm/wtmp
-rw-rw-r-- 1 adm adm 7172 Jan 10 16:10 /var/adm/wtmps
utmps is not updated because utmpd is running.
Some advice? Welcome to discuss.:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2005 02:31 AM
тАО08-26-2005 02:31 AM
Re: utmp/utmpx/utmps vs wtmp/wtmps
Your study/research is so much make sense.
Leart a lot from you. Thanks.
By the way, I have some questions for you --
(1) my wtmps is getting too large, how do I truncate some ? (I don't want delete them all)
(2) how can I just delete a few rows in wtmps -- where the record I don't want to be left there?
(3) If I rename the wtmps, which program suppose to recreate a new wtmps or there is none such a thing. Which one is adding new records to wtmps and can I temporarily stop the adding process?
thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2005 12:57 AM
тАО08-28-2005 12:57 AM
Re: utmp/utmpx/utmps vs wtmp/wtmps
i suggest you read manpage of command "fwtmp", which can transfer wtmp-like file to ASCII form.
That would help you understand the content of files you mentioned.
Just advice. :)