- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- last doesn't work, and cat /dev/null > /var/adm/wt...
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
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
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-18-2006 07:12 PM
тАО01-18-2006 07:12 PM
last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
HP-UX 11.23.
My last show only ftp logins, but in wtmp I saw
other logins.
cat /dev/null > /var/adm/wtmp
and
cat /dev/null > /var/adm/wtmps
not fix it - whith new files last work just as before.
Please, help me!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:19 PM
тАО01-18-2006 07:19 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
> /var/adm/wtmp
> /var/adm/wtmps
This will empty them but leave them in place with permissions.
inetd -l should start enhanced logging.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:25 PM
тАО01-18-2006 07:25 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
This thread should help you.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990722
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:26 PM
тАО01-18-2006 07:26 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
Did you use it??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 07:55 PM
тАО01-18-2006 07:55 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
but not for a while yet nothing help me:((
to Steven E Protter -
I clear both files, how You write -
> /var/adm/wtmp
> /var/adm/wtmps
and they will be zero size. Then, when users login, situation was repeat -
1) in wtmps - only ftp logins
2) in wtmp - other logins
but last command show only logins from wtmps!
lastb work properly.
to Arunvijai
- I alredy read this thread, but main idea of it - properly clear wtmp, I do it, but nothing changes...
to RAC
I don't understood, how work whith this command :((
/usr/sbin/acct/wtmpfix < /var/adm/wtmp
Invalid input. Exiting ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:01 PM
тАО01-18-2006 08:01 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
/usr/sbin/acct/wtmpfix < /var/adm/wtmp
works for me.. # man wtmpfix will help you.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:17 PM
тАО01-18-2006 08:17 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
You should truncate both "/var/adm/wtmps" & "/var/adm/btmps" files (AND NOT /var/adm/wtmp & /var/adm/btmp ) as your OS is 11.23 and not 11 or 11i.
These has been the small chages in OS revisions which we always forget at times.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2006 08:20 PM
тАО01-18-2006 08:20 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
/usr/sbin/acct/fwtmp < /var/adm/wtmp
show me all logins not ftp.
Because I don't know, how do last work properly, I'll use
/usr/sbin/acct/fwtmp < /var/adm/wtmp
But I hope, may be anybody know, how do this?..
Thank You all,
Vera.
P.S. I very bad know english - understand, when I read, but not speak and very bad write, sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 08:37 AM
тАО01-24-2006 08:37 AM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
last -f /var/adm/wtmp
What is being used to log in to the machine (ssh, telnet?)
VAS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 08:51 AM
тАО01-24-2006 08:51 AM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
Maybe that is corrupt as well....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 04:58 PM
тАО01-24-2006 04:58 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
/etc/utmp - is not corrupt,
last -f /etc/utmp
is work properly.
and
last -R -f /var/adm/wtmp
is work properly.
Now, I don't understand only why "last" without arguments not show information from all this files...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 05:07 PM
тАО01-24-2006 05:07 PM
Re: last doesn't work, and cat /dev/null > /var/adm/wtmp not fix this problem!
Can you try as,
mv /var/adm/wtmp /var/adm/wtmp.old
Post this output,
last
last -f /var/adm/wtmp
--
Muthu