Where to put scripts (random Ubuntu forum post):
Yourself only - $HOME/bin like @waltinator said
You and other local users - /usr/local/bin
root only - /usr/local/sbin
tags: script, linux, files
Recycling old note...
Secure Programming for Linux and Unix HOWTO
http://www.dwheeler.com/secure-programs/. This is the main web site for the Secure Programming for Linux and Unix HOWTO. This document provides a set of design and implementation guidelines for writing secure programs for Linux and Unix systems. Such programs include application programs used as viewers of remote data, web applications (including CGI scripts), network servers, and setuid/setgid programs. This document includes specific guidance for a number of languages, including C, C++, Java, Perl, Python, and Ada95. -- I had a quick look... it looks like a very thorough overview of programming security...