deleting login history after logging out
Oliver Leitner
shadow333 at gmail.com
Mon Jun 27 10:23:59 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ankush Grover wrote:
> Hey friends,
>
> Please tell me how to delete the user's bash history file after he or
> she logs out.
> I tried this /etc/skel/bash_logout
>
> rm -f $HOME/bash_history
>
> But it is not working.
>
> Can anyone tell me how to do this .I want to do it for every user.
>
>
> Thanks & Regards
>
> Ankush Grover
>
Dear Ankush
the easiest way would be a cronjob, that does a history -c every 5
minutes or so.
on a wider approach you might wanna try to make your own daemon, that
does the job.
i hope that helps you further
Greetings
Oliver Leitner
Technical Staff
http://www.shells.at
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCv9O+xHPquN24yVsRAgmoAKC4tW90OcPO1J53q7ce2oneURJmqQCePU1A
1l+q3gxtj56QkzkeRYBI/Kg=
=eMQN
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list