[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .bash_history



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Sep 29, 2005, at 10:33 AM, Cristian Del Fabbro ['NOSPAM' -> 'cdf- ml'] wrote:

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
ricky@Cerberus:~$ 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

Direi proprio di no....

ricky@Deathbringer:~$ lsattr .bash_history
- -----a----------- .bash_history
ricky@Deathbringer:~$ rm .bash_history
rm: cannot remove `.bash_history': Operation not permitted


- - Riccardo Tortorici -
Linux Registered User #365170
Count yourself @ http://counter.li.org/ !
- --
no1984.org member - Stop TCG!
- --
HTML email can be dangerous, is not always readable, wastes bandwidth
and is simply not necessary please don't send them to me!

http://www.georgedillon.com/web/netiquette.shtml





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDPAptSiJn2/P84wYRAhNHAJsFzGloM03uj4fNMTqiLfNB7VwJXgCfWH1l
JpluX+JoRDbBu9N0lfnPBaI=
=Q7Cy
-----END PGP SIGNATURE-----



Reply to: