1834431 Members
2395 Online
110067 Solutions
New Discussion

help : csh

 
Insu Kim
Honored Contributor

help : csh

I link $HOME/.history to /dev/null for security reason.
Now, the problem is that all csh based scripts are getting errors when they executed.
They're running on hpux 11.0.

# csh
$HOME/.history : Not a regular file

Any help would be appreciate,
Never say "no" first.
5 REPLIES 5
Balaji N
Honored Contributor

Re: help : csh

hi
i dont what security you are trying to acheive by linking it .history to /dev/null.

if you dont want that file to be stored, read the man page of csh. snippet is given below.

else, in your .logout file delete the .history file.

hth
-balaji
+++++++++++++++++++++++++++++++
history This variable is used to create the command
history buffer and to set its size. If this
variable is not set, no command history is
maintained and history substitutions cannot be
made. Very large values of history can cause
shell memory overflow. Values of 10 or 20 are
normal. All commands, executable or not, are
saved in the command history buffer.
+++++++++++++++++++++++++++++++
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Steven E. Protter
Exalted Contributor

Re: help : csh

I'd like to know the security reason. Just make the permissions 700 and move on.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: help : csh

As specified /dev/null is not a normal file
Just use

#csh 2>/dev/null

to redirect the error messages

Thanks
Andreas Voss
Honored Contributor

Re: help : csh

Hi,

to disable history functionality you have to unset the environment variable history.

You could do this ie. in /etc/csh.login with:

unsetenv history

Regards
H.Merijn Brand (procura
Honored Contributor

Re: help : csh

Andres, in (t)csh, 'history' is not an 'env' variable, like $PATH or $LOGNAME

unset history

or

set history=0
set savehist=0

With the tcsh, you can clear the history with

history -c

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn