Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 1999 17:55:23 +0100 (CET)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: shell history files
Message-ID:  <199912311655.RAA09733@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
aunty@comcen.com.au wrote in list.freebsd-questions:
 > Is there some way to stop users from deleting their .bash_history files?

Tell them not to delete them.  :-)

Technically, there is no way.  If you can write to the file,
you can effectively delete it.  Well, you could make them
append-only (see ``man chflags'') and raise the secure-level
(see ``man init''), but bash probably doesn't like this,
because it wants to overwrite the file.

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
                                         (Terry Pratchett)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912311655.RAA09733>