- File permissions
- ulimit
- taint mode
- monitoring (process monitoring, sar, etc.)
Apply liberally. All these are contributing factors to a manageable server. =) I expect that the other monks will provide more detailed, thought-out responses, since I don't have the time for that.
mhoward - at - hattmoward.org
| [reply] |
Do you have Perl for System Admin by O'reilly? Good stuff in there for you -- at least that is where I started a while back with the same type of question. Have not had much trouble since. Start with hattmoward's suggestions, then go get your read on.
CSUhockey3
| [reply] |
Secure the server, not Perl. There are numerous hardening kits available for different flavors of Unix. For example, if you are using Solaris, you can use JAZZ and Titan.
There is a myth that Perl has sandboxing issues. In fact, this is one of the reasons given for Yahoo's switch from Perl to PHP in the delivery phase of it's pages. This is bull. | [reply] |
In short, perl can do anything you could do from the shell, so lock down the user account. | [reply] |
If you are talking about a publicly accessable web server, you should consider running the web server (eg apache) in a chroot environment. The use of systrace is recommended too (it filters the syscall use).
-DBC
| [reply] |