On Thu, 29 Sep 2005, Riccardo Tortorici wrote:
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
[EMAIL PROTECTED]:~$ chattr -a .bash_history
chattr: Operation not permitted while setting flags on .bash_history
Ma l'utente non potrebbe fare:
rm .bash_history ; touch .bash_history
vanificando il tutto? :-D
bye
CDF