Riccardo Tortorici wrote:
chattr +a .bash_history
gli metti l'attributo "append", l'utente può aggiungere ma non togliere..
:-)
Se l'utente ha i permessi totali sulla propria home (come in genere accade)
tutto cio' e' inutile...
Non con chattr.
Cerberus:/home/ricky# lsattr .bash_history
- ----------------- .bash_history
Cerberus:/home/ricky# chattr +a .bash_history
Cerberus:/home/ricky# lsattr .bash_history
- -----a----------- .bash_history
Cerberus:/home/ricky# su - ricky
ricky@Cerberus:~$ chattr -a .bash_history
chattr: Operation not permitted while setting flags on .bash_history