- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to edit (remove) some entries from history...
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
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
тАО02-24-2012 05:44 PM
тАО02-24-2012 05:44 PM
How to edit (remove) some entries from history of root user with out trace...
Hi All,
How to edit (remove) some entries from history of root user with out trace...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2012 05:59 PM
тАО02-24-2012 05:59 PM
Re: How to edit (remove) some entries from history of root user without trace...
I'm not sure why you would ever want to do this, unless it is for some nefarious purpose.
I suppose you may want to remove a password that was on a command line?
You can simply use vi. I'm not sure if the file will be a valid history file after that, since the file is binary.
Of course if you have auditing enabled, then you may have that vi usage logged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2012 01:32 PM
тАО02-25-2012 01:32 PM
Re: How to edit (remove) some entries from history of root user with out trace...
The shell history kept by the POSIX shell, Korn shell or even bash is not 100% ASCII. There are binary characters kept in the file for positioning. If you delete or add any lines, the history will be non-functional. The only way to restore the history and recall function is to empty the file completely.
Bill Hassell, sysadmin