- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deneing use of HISTFILE variable to normal user
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
08-10-2010 09:23 PM
08-10-2010 09:23 PM
I have created user auditing using History.
I have put this script in /etc/profile
but normal user can change path of this history file uisng HISTFILE variable.
I want to denie use of HISTFILE variable to normal user kindly help on this.
Chandra
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 09:37 PM
08-10-2010 09:37 PM
Re: Deneing use of HISTFILE variable to normal user
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 10:54 PM
08-10-2010 10:54 PM
Re: Deneing use of HISTFILE variable to normal user
Will hpux auditing help following way:
a)Each command typed by each user (including root)need to be logged on file
b)There should be a time stamp of each command.
If yes kindly provide required documents it will be more help ful me.
Thanks in advance..
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 01:23 AM
08-11-2010 01:23 AM
Re: Deneing use of HISTFILE variable to normal user
This isn't foolproof.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 10:42 PM
08-11-2010 10:42 PM
Re: Deneing use of HISTFILE variable to normal user
what is the mean of this"This isn't foolproof"
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 10:53 PM
08-11-2010 10:53 PM
Re: Deneing use of HISTFILE variable to normal user
> foolproof"
What stops a user from deleting or editing
his own HISTFILE?
> I have created user auditing using History.
No, you've created something which _pretends_
to be user auditing, but which any user can
evade or deceive.
If you need auditing, then why not use _real_
auditing? What good is using
pseudo-auditing, when you can't trust the
audit? If you don't care if the auditing is
accurate, then why bother doing anything?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 10:53 PM
08-11-2010 10:53 PM
Re: Deneing use of HISTFILE variable to normal user
The text of the last HISTSIZE (default 128) commands entered from a terminal device is saved in a history file. The file $HOME/.sh_history is used if the HISTFILE variable is not set or writable.
The user can edit the history and modify.
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 12:50 AM
08-12-2010 12:50 AM
Re: Deneing use of HISTFILE variable to normal user
Periodically (in minuts)coping user history file to central location can avoid deletion audit log from user for some extend.
Steeven::I do agree your comment but something is better then nothing.
do you have any other alternate for this(user audit)which should be a product of hp or open source one.
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 02:30 AM
08-12-2010 02:30 AM
Re: Deneing use of HISTFILE variable to normal user
You can use a audit system. In the past this only can be used in a trusted system. Althought today's you can use it installing a bundle.
Check the link: http://docs.hp.com/en/5991-1101/ch08s03.html
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 05:03 AM
08-12-2010 05:03 AM
Re: Deneing use of HISTFILE variable to normal user
However, ordinary users have very little power to damage the system -- only root can do this. DO NOT use su for extending root privileges. Instead, download sudo from HP and configure the sudoers file to restrict each user. Now you'll have a log of what was attempted and what was done as root.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 05:19 AM
08-12-2010 05:19 AM
Re: Deneing use of HISTFILE variable to normal user
Is trusting something which can't be trusted
really better than nothing?
> do you have any other alternate [...]
Did you try a Web (or Forum) search for
keywords like, say:
hp-ux audit
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 05:39 AM
08-12-2010 05:39 AM
Re: Deneing use of HISTFILE variable to normal user
Readonly shell variables aren't perfect. Clever uses of subshells and programs can defeat it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2010 06:21 AM
08-12-2010 06:21 AM
Re: Deneing use of HISTFILE variable to normal user
Your HISTFILE will probably not tell you what the user did in detail ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2010 01:22 AM
08-13-2010 01:22 AM
Re: Deneing use of HISTFILE variable to normal user
Thanks fo reply for all,
Dennis and Torston i agree with your comment,
I have gone through all possible way to get solution on User audit,but i didnt find any best solution,powerbroker and centrify solution are full fill these need but they charge huge,is there any solution either hp product or open sourceed one.
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2010 03:26 AM
08-13-2010 03:26 AM
Re: Deneing use of HISTFILE variable to normal user
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2010 03:32 AM
08-13-2010 03:32 AM
Re: Deneing use of HISTFILE variable to normal user
Anyone remembers the old BBS system? (In the early 1995 or so... - using modem/Dial-Up connections)
Used to setup some of those. Golden ages... :-)
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2010 04:05 AM
08-14-2010 04:05 AM
Re: Deneing use of HISTFILE variable to normal user
Any how thanks to all.............
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 05:34 AM
08-18-2010 05:34 AM
Re: Deneing use of HISTFILE variable to normal user
Perhaps you're asking the wrong question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 10:20 AM
08-18-2010 10:20 AM
Re: Deneing use of HISTFILE variable to normal user
If some body don't have answer better to keep silent rather misguiding authors,
Chandra