in reply to Mysql-CGI Security Question
I always set up web-site systems ... those which cannot offload the entire “authentication question” to something like LDAP ... to initially connect to the database using a userid/password that gives only read-only permission to the authentication table. Once the user is authenticated, the web-site software might choose to re-authenticate itself using one of several userid/password combinations, but none of them are rootly. The idea, simply, is “the principle of least privilege.” Each of the several tasks which the web-site might do are compartmentalized, and while performing each of those functions the web-process has only the privileges which it requires to do that job ... and no more.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mysql-CGI Security Question
by jhourcle (Prior) on Aug 05, 2011 at 16:46 UTC |