Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jun 2007 22:37:59 -0400
From:      Kevin Hunter <hunteke@earlham.edu>
To:        VeeJay <maanjee@gmail.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to disable command prompt history?
Message-ID:  <46637B07.6050705@earlham.edu>
In-Reply-To: <2cd0a0da0706030142l1fd30d74yc443e132337daf37@mail.gmail.com>
References:  <2cd0a0da0706020638g48b7ac7fn946c6e3caddc0663@mail.gmail.com>	<466199E5.3040005@vindaloo.com>	<e14997e00706021056h2c94e1c6je3e57acc33841066@mail.gmail.com>	<4661B6E0.803@earlham.edu> <2cd0a0da0706030142l1fd30d74yc443e132337daf37@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 4:42a -0400 on 03 Jun 2007, VeeJay wrote:
> Actually, it was for the security reason that if somebody breaks in the
> server then he/she doesn't see what commands are being executed, etc,
> etc....
> 
> and I am using /bin/sh
> 
> any more comments?

I don't use /bin/sh on a regular basis (bash, for better or worse) so I
can't help you.

>From a security standpoint, I'm more wondering what makes you so worried
that someone will break in?  Would some suggestions from the community
about securing your system be helpful?  (I'm no security guru so don't
ask me . . . 8-< )

Also, why are you worried about them seeing what commands you've been
running?  My first thought is that at the point a malicious someone has
broken into your system, you have (much) bigger things to worry about.

But, to dumbly answer your question, see if sh looks for ~/.logout.  If
it does, have it remove ~/.history and clear the screen.  Or, if the
order of that doesn't work (if .logout is read /before/ .history is
written), 'chmod 000 .history'.

Best of luck,

Kevin



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