LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2009, 11:01 AM   #1
mrowcp
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
Question how to disable unset HISTORY HISTFILE and etc.


Can someone tell me how can I disable unset HISTORY and etc ?!?
 
Old 09-18-2009, 12:20 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Take a look here: http://www.thegeekstuff.com/2008/08/...-line-history/ go down to listing number 14.
 
Old 09-18-2009, 01:26 PM   #3
mrowcp
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Take a look here: http://www.thegeekstuff.com/2008/08/...-line-history/ go down to listing number 14.
nop, bro.I wana disable this command.I mean when someone type:

unset HISTORY

to remember the history, not to unset it.Just wana disable unset command ( or if he export HISTFILE=/dev/null ), so all history to be available.
 
Old 09-18-2009, 01:48 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
If you are wanting to audit what users do by ensuring that all their commands are captured in the history file then the question has been asked several times before and it is not possible; the bash history mechanism is designed as a user convenience and there are just too many ways the user can get around it for it to be any use as an audit tool.

Last edited by catkin; 09-18-2009 at 01:53 PM. Reason: to -> too
 
Old 09-18-2009, 03:16 PM   #5
mrowcp
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
If you are wanting to audit what users do by ensuring that all their commands are captured in the history file then the question has been asked several times before and it is not possible; the bash history mechanism is designed as a user convenience and there are just too many ways the user can get around it for it to be any use as an audit tool.
Yes, exactly.
Ok, if I make copy or redirect or something with .bash_profile ?!?
May be some script or... pf...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to store command history using HISTFILE in 2 locations? emzvargas Programming 6 01-30-2015 03:48 AM
Is there a way to prevent users from changing or unset their HISTFILE variable? abefroman Linux - Security 7 09-13-2009 11:41 AM
tcsh: can you save the history from multiple shells to one history file? BrianK General 2 04-23-2009 05:19 AM
Temporary Disable History Command leebrent Linux - Security 1 02-11-2008 08:54 PM
HISTFILE versus HISTFILESIZE calutateo Linux - Newbie 1 07-25-2005 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration