> I am looking for a way to change the location of .bash_history so that
> people that use my system won't be able to delete the file if they are doing
> something they shouldn't be. I've already used the system accounting
> (accton/lastcomm), but it only shows the command and not any flags or
> parameters passed to that command.
> Is there a way to either change the location of .bash_history or make the
> system accounting log the flags/parameters passed to the specific command?

well you can make the history file owned by root and chmod it 440,
then add the "script -a /tmp/logfile" command to .bash_profile. this
logs everything that shows up on their console..keystrokes
and so forth..it's a privacy infringement and very unethical so i
wouldn't use it unless there is good reason. 
you would also have to chown root chmod 400 .bash_profile 
and find a way to "silence" the script command to make users
unaware of it.
 



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to