SAQ wrote:
Trying to recall what the deal was with writing scripts running on csh. I seem to recall dire warnings of impending doom being circulated at one point, along with reminders to use !#/bin/sh.
Yes, that was a very strongly held belief - but after 20 years I'm also having a little trouble remembering
why
. Based on some sketchy Googling, I'm guessing it's based on SUID use being risky because of how csh selects the home directory to read dot-files from at startup. There may also be something about how the environment is inherited, or how shell variables are initialized...?
If you've got time, it looks like Matt Bishop released an update in 2009 of a security review he did on UNIX in the 80s. Grab a copy of the PDF
here
. It has some detail on the SUID issue, at minimum.