Drupal advanced ACLs for "untrusted" administrators
Posted
by redShadow
on Stack Overflow
See other posts from Stack Overflow
or by redShadow
Published on 2010-04-01T08:22:52Z
Indexed on
2010/04/01
10:03 UTC
Read the original article
Hit count: 272
I have a multi-site Drupal-6 installation containing websites of different customers.
On each site, there is an "administrator" role that includes mainly the customer's account. We want to give as many permissions as possible to this privileged user, but this could bring to security leaks using just the Drupal Core permissions management system.
The main thing to avoid is the customer account being able to run PHP code on the server (that would be like being logged on the server as the www-data user.. sounds really bad).
To avoid that, it is not sufficient to deny PHP code evaluation for the role. Since the administrator role must have permissions to manage users, he could also change the password of the user #1 and login in the site as superadmin.
The second goal would be to deny also some "confusing" administrative pages (such as module selection) but not others (such as site informations configuration, or theme selection, etc.)
I found the User One module that seems to fix the first problem, but I have no idea on how to solve the second one. I found some modules around, but no-one seems to fit.. it seems like the most ACLs are thought to protect the content, and not the site itself, as if the site administrator would always be the server owner itself..
© Stack Overflow or respective owner