[Ilugc] Web Share Tool

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Fri Jun 20 16:38:21 2008

Hello,

On Thu, 19 Jun 2008, Bharathi Subramanian wrote:

To send a file to User1, the file will be uploaded in his folder/
account and send a mail to him with the file link. User1 will be
authenticated with a password, whenever he is trying to access his
folder/account or download file.

Can one assume that users will not have shell access to the system?

If that is the case, then the task can be carried out roughly as
follows. The initial setup is:

1. Create a bunch of users on the system via an htpasswd file (or if
   you can, LDAP).

2. Use "UserDir" to map each user to a specific directory.

3. Use the "Require {username}" directive in the .htaccess file for
   each of these UserDir directories.

Any time you want a file to be accessible by that user copy the file
with global read permissions (and owned by nobody!) to that user's
UserDir and send a mail with the file link; you can even use symbolic
or hard links if you want to save space while providing the file to
multiple users.

Regards,

Kapil.
--

Other related posts: