Date: Thu, 28 Feb 2008 16:07:42 +0300 From: Yuri Pankov <yuri.pankov@gmail.com> To: Girish Venkatachalam <girishvenkatachalam@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Making .bash_history non writeable by user? Message-ID: <20080228130742.GF92245@mail.irbisnet.ru> In-Reply-To: <20080228123052.GA976@saraswathy.madambakam.org> References: <20080228123052.GA976@saraswathy.madambakam.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 28, 2008 at 06:00:52PM +0530, Girish Venkatachalam wrote: > > Hello friends, > > My friend wants the user commands history file ~/.bash_history to be non > writeable by user. He feels that the user should not able to erase the commands > entered by him. > > A reasonable requirement. > > In case the ~/.bash_history file can also be written to > another location that the root alone can access then perhaps we can > solve this problem. > > But AFAIK bash runs as the user process. How can you make the file > readable and writeable by root alone? In that case how can the history > mechanism function? > > Do you guys know a way to get around this problem? > > Thanks. > > -Girish > > -- > "unix soi qui mal y pense" > > UNIX to him who evil thinks Try setting 'sappend' flag on .bash_history with chflags(1). Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080228130742.GF92245>