- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- filter/remove last login information.
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
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
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
03-13-2007 08:04 AM
03-13-2007 08:04 AM
filter/remove last login information.
I have some question about /var/adm/wtmp file. My last command shows lots of login for remshd with root user.
1. Is there a way not to log remshd login for this server?
2. How can I clear one week old login information from this file? Is there script or config file available for this?
I am using HP-UX 11.11
Sample last command output:
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:59 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
root remshd Tue Mar 13 15:58 still logged in
thanks
SR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2007 08:15 AM
03-13-2007 08:15 AM
Re: filter/remove last login information.
There are number of useful accounting scripts in /usr/sbin/acct directory. Review them if you would like,
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 03:31 PM
04-10-2007 03:31 PM
Re: filter/remove last login information.
But the remshd appear when I run nickel command to my db server. some line have the time out time but there is few lines with message still logged in.
Why and how to troubleshoot this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 05:48 PM
04-10-2007 05:48 PM
Re: filter/remove last login information.
For question 1, man remshd.
-t This option disables remshd from logging client connections
to the /var/adm/wtmp file when the client does not use a
secondary stream
Specifically check about the Kerberos setup, if you have one.
The -t option is ineffective in a default Kerberos setup
man 5 sis
(secure internet services)
----------------
1-Make a backup copy of your wtmp to wtmp.bkp
2 -Here we are using fwtmp tool to convert the binary wtmp.bkp to text file (wtmp.txt). Be careful about the redirections.
/usr/lib/acct/fwtmp < wtmp.bkp > wtmp.txt
3 - Edit whatever you want in wtmp.txt
vi wtmp.txt
4- Convert back the modified wtmp.txt file back to original wtmp
/usr/lib/acct/fwtmp -ic < wtmp.txt > wtmp
You are done.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2007 06:49 PM
04-10-2007 06:49 PM
Re: filter/remove last login information.
Regards,
Rasheed Tamton.