[Ilugc] Can't run inside "/bin" directory commands.Permission denied error
- From: raju.rajsand@xxxxxxxxx (Rajagopal Swaminathan)
- Date: Thu, 12 Dec 2013 11:05:19 +0530
Greetings,
On Wed, Dec 11, 2013 at 2:24 PM, Arun Khan <knura9 at gmail.com> wrote:
Who changed it? Do you have any mechanism in place to track such changes?
One possible mechanism in bash is :
echo 'export HISTTIMEFORMAT="%F %T "' >> /etc/profile
echo 'export HISTSIZE=5000' >> /etc/profile
echo 'export PROMPT_COMMAND="history -a"' >> /etc/profile
This will help track last 5000 commands typed in any terminal window
one just has to type
history -r
in the terminal logged in as the user whose history one wants to track
man bash
will give more detailed information. Beware it is around 200+ screenfuls
--
Regards,
Rajagopal
Other related posts: