Date: Fri, 31 Dec 1999 20:41:07 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: shell history files Message-ID: <199912311941.UAA14162@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
Ben Smithurst wrote in list.freebsd-questions: > aunty wrote: > > Is there some way to stop users from deleting their .bash_history files? > > Try "chflags sunlnk" on them, it might work. That won't prevent from ``cp /dev/null .bash_history'' to effectively delete the history. Sue, why do you want to have the users' history files preserved anyway? If this is for user monitoring, then it is a bad way. It is unreliable and can easily be faked and forged. Better use process accounting for this (see ``man lastcomm'' and ``man 8 sa''). 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?199912311941.UAA14162>