|
Authenticating Web Users against Linux Accounts.
I have a web project where I have to give each user a home directory and control over their files (hosting company).
But this time, they have only access via a web-file management tool (no ssh or ftp).
So we have a database of course where we keep login information, but at the same time, I have to create unix account for users and give total control over their files, so that they can do whatever they want with their home-dir, of course not messing up with the server and other peoples files.
To get this done, my apache should authenticate against linux accounts (/etc/passwd or /etc/shadow), and change the web user into that system account (that's all i know, if there is a better way to achieve this please tell me)
For this purpose, I found, mod_auth_pam, mod_auth_shadow, mod_authz_external to use. I couldn't quite figure out how to use them yet, first I wanted to make sure I am on the right path.
I also read that there are a lot of security issues around this setup, so I'm a little worried as well.
I'd appreciate your take on this, ideas or your experience.
Thanks a lot,
D
|