- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Customizing history file in HP-UX
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
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
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
09-12-2011 06:46 AM
09-12-2011 06:46 AM
Customizing history file in HP-UX
Hi,
In our HP-UX 11i V3 server, currently we are using the default .sh_history file for all users command history. But, this file maintains the history of very limited commands and each user can edit his own history file. So, for monitoring purpose, we need to maintain the history of at least 10000 commands of each user and user should not have permission to edit this file. could you please help me to setup this for all users in the system.
Yours,
G V U M REDDY,
UNIX system administrator,
Bangalore,
India.
- Tags:
- history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2011 06:54 AM - edited 09-12-2011 06:54 AM
09-12-2011 06:54 AM - edited 09-12-2011 06:54 AM
Re: Customizing history file in HP-UX
>we need to maintain the history of at least 10000 commands of each user
You need to add this to /etc/profile: export HISTSIZE=10000
>user should not have permission to edit this file.
You can't do this because users won't be able to write to the file. If you want this type of auditing, give up on using the history file.