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

Re: Lockare variabili [WAS:Re: .bash_history]



On Sun, 2 Oct 2005 00:19:56 +0200
Riccardo Tortorici <riccardo.tortorici@gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> On Oct 1, 2005, at 7:46 PM, Massimo Dal Zotto wrote:
> 
> >
> > Ma l'utente puo' semplicemente fare
> >
> >   export HISTFILE=/dev/null
> >
> > oppure
> >
> >   export HISTFILE=~/.bash_history.$$.$RANDOM
> >
> > o anche semplicemente
> >
> >   unset HISTFILE
> >
> > e ti ha comunque fregato.

puoi impostare come readonly le variabili che non vuoi vengano
modificate.
ad es.

       HISTFILE=~/.bash_history
       readonly HISTFILE
       export HISTFILE

ciao


-- 
Gianluca 

| Linux User:  #287733    | GPG Key ID: 0x209C3540    |
| IM: Icq: 10060110; Jabber: gianluca@jabber.linux.it |
| chan #ceres@azzurra.net                             |
------------------------------------------------------

Attachment: pgpb2cWgh22NI.pgp
Description: PGP signature


Reply to: