LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2009, 11:40 PM   #1
demia
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Rep: Reputation: 15
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
 
Old 05-16-2009, 11:40 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
http://www.faqs.org/docs/Linux-HOWTO...TO.html#AEN305

Your concerns about security are well founded. This is a kludge. Nevertheless and surprisingly this seems to be the only viable way to use Linux user accounts to authenticate web sessions. I wish that I had better news. It's difficult for me to believe that this issue has not been addressed better by now.

Last edited by stress_junkie; 05-16-2009 at 11:43 AM.
 
Old 05-16-2009, 12:03 PM   #3
demia
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Original Poster
Rep: Reputation: 15
what about this ?

http://www.cablan.net/phpsuexec.html
 
Old 05-16-2009, 01:22 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,051
Blog Entries: 2

Rep: Reputation: 93
Instead of creating real accounts you might want to use virtual ones with ftp access, they'd be locked into their home directory and have complete access in it, but would be unable to go anywhere else in the system. When I worked at an isp we did this for our customer's personal web pages. I think several different ftp programs (like proftpd) offer this kind of thing, including quotas for disk space.
 
Old 05-16-2009, 01:25 PM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,051
Blog Entries: 2

Rep: Reputation: 93
What about using ftp for managing the home directory access and using virtual accounts instead of real ones. ftp programs like proftpd (and I'm sure others) offer virtual accounts with quotas. It restricts the user's access to the "home directory" area they've been given. When I worked at an ISP we did this for customer's personal web pages and it worked great.
 
Old 05-16-2009, 01:29 PM   #6
demia
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Original Poster
Rep: Reputation: 15
i think here is the answer to this problem: http://blog.stuartherbert.com/php/20...shared-server/
 
Old 05-16-2009, 06:09 PM   #7
demia
LQ Newbie
 
Registered: Apr 2009
Posts: 28

Original Poster
Rep: Reputation: 15
And this is THE solution (at least for me):
http://blog.stuartherbert.com/php/20...shared-server/

hope to be of help to others..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
authenticating domain users linx win Debian 2 10-12-2008 08:18 AM
Authenticating users with a proxy ronkymac Linux - Networking 0 07-17-2008 10:44 PM
authenticating nt users in Samba? GuN_HaPpY Linux - Software 0 08-10-2003 11:58 AM
Authenticating users via apache!! RKris Linux - Software 1 02-17-2003 07:18 AM
Authenticating users on Proftpd wallaba Linux - Newbie 4 02-17-2003 02:08 AM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration