Making .bash_history non writeable by user?
- From: Girish Venkatachalam <girishvenkatachalam@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 18:00:52 +0530
Hello friends,
My friend wants the user commands history file ~/.bash_history to be non
writeable by user. He feels that the user should not able to erase the commands
entered by him.
A reasonable requirement.
In case the ~/.bash_history file can also be written to
another location that the root alone can access then perhaps we can
solve this problem.
But AFAIK bash runs as the user process. How can you make the file
readable and writeable by root alone? In that case how can the history
mechanism function?
Do you guys know a way to get around this problem?
Thanks.
-Girish
--
"unix soi qui mal y pense"
UNIX to him who evil thinks
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Making .bash_history non writeable by user?
- From: Yuri Pankov
- Re: Making .bash_history non writeable by user?
- Prev by Date: Can't work out which disk we are booting from.
- Next by Date: Re: Can't load kernel, trying to install on a Dell R900.
- Previous by thread: Can't work out which disk we are booting from.
- Next by thread: Re: Making .bash_history non writeable by user?
- Index(es):