File permissions - cgi etc
Posted on 1998-09-03
As a complete Unix newbie who's just been given the keys to a virtual server, I'm confused by file permissions for cgi scripts. Having set up my cgi-bin directory and uploaded some scripts, I can't work out which chmod setting to give them. And how do I prevent access to the directory while still permitting the right level of access to the scripts? Can I just password protect the directory using the .htaccess file, or will that prevent access to the script functions? I've been given several conflicting opinions on this, so I need an answer that is guaranteed to work (ideally one that someone can show me is working on their own server).