Dear Unix gurus,
Is there any way to track commands used by users at command prompts (AIX machine)? Can it be kept in a log that is not accesible by the users? We are using /bin/sh.
root is not the only file to be able to see the shell history file; the user can edit and delete it themselves if they want to as it will be owned by them. The only difference is that since it is a dot file, it will only show up when using the -a option to ls.
you can modify the $HISTFILE variable to be whatever you would like, but as for keeping the user away from it, not sure about that, perhaps do some sort of output duplication. I set my $HISTFILE var like this:
which lets me have a separate history on each server. my home is in a nfs-mount and generally accessible on all of our machines. perhaps you can do something creative with a nfs-mounted history directory.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.