- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to modify the history file
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
тАО05-25-2010 05:23 AM
тАО05-25-2010 05:23 AM
how to modify the history file
I am working on a production servers, hence all the commands I type and work are captured.
Could some one of you assist, how to modify the history file?
To be frank, in case if I do a mistake, how can get away from that :P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 05:51 AM
тАО05-25-2010 05:51 AM
Re: how to modify the history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 08:38 AM
тАО05-25-2010 08:38 AM
Re: how to modify the history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 10:24 AM
тАО05-25-2010 10:24 AM
Re: how to modify the history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 11:16 PM
тАО05-25-2010 11:16 PM
Re: how to modify the history file
its not good practice to hide the mistakes which you done on production servers.
its productions servers & simple mistakes can cause loss of revenue...
if you interested to know how users can edit history file .. i can give some tips...
1. As default user can "vi history" file & remove unwanted commands. but its traceable.. any body can say that user have edited history file
2. create a script in /tmp/ & put entry rm /.history in that. if user run the script .. history file will be deleted.. there is very less chance the we can trace it.
3. else user can use sed instead of rm to remove only one line/command.
But, if you have strong user mgnt utilities like power broker installed in your box. user can't hide anything . it will capture command as well as output.
sudo logging also another gud way to capture user activities.
Hope this will be helpful for you
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 11:44 PM
тАО05-25-2010 11:44 PM
Re: how to modify the history file
To modify the history file,
* If you login as root,
cd /root
vi .bash_history
* If you login as user,
cd /home/
vi .bash_history
>> To be frank, in case if I do a mistake, how can get away from that :P
I would suggest you to not make any changes to the history file.
If you do any mistake then remember that you or somebody else have to fix the
problem. When fixing the problem, it becomes important to know what was the
set of commands that were executed on that system. To root cause the issue
the history file may provide clues.
As you are working on a production server, firstly you need to be sure of
what you are doing on the production server. This forum is always there for
any clarification that you may need.
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2010 01:51 PM
тАО07-04-2010 01:51 PM