Re: save commands history.

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

 



On Sunday 14 Mar 2004 17:10, Mike Burger wrote:
> On Sun, 14 Mar 2004, Manuel Aróstegui Ramirez wrote:
> >  --- Mohamed Kerbachi <Mohamed.Kerbachi@xxxxxxxxxxxxx>
> > escribió: > Hello,
> >
> > > Is there way to save the commands history of a user
> > > in other place than $HOME where he can't delete it ?
> > >
> > > Thanks.
> >
> > Maybe you can change .bash_history permission and
> > group in order to not allow the user removed it.
> >
> > Look at man chmod, man chown and man chgrp
>
> I don't think that wouldn fly...to disallow deletion, you'd have to turn
> off write capability...which would then disallow the ability for commands
> to go into the .bash_history file, in the first place.
try chattr +a on the history file? (makes it append only... can't delete it)

Stuart

-- 
Stuart Sears RHCE/RHCX


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux