login problem

Browni

Registered
On my webserver i have a folder called dev located at /clients .

inside this folder are folders with my clients work inside of them. I want to allow All clients access to the clients folder, but only to view their folder?

How can i do this?

PS view my new site http://www.adambrowndesigns.co.uk
 
You'll have to create a different login ID for each user. Then it should be a simple matter to "get-info" on each user's folder, make each user the 'owner' of his or her folder, and set access for everyone else to "None".

I'm assuming your web server is running ordinary "client" OS X , and not OS X Server? IF it's Server, there are some other considerations.
 
Its a Linux server, but the admin is done through cpanel. What i want is wen the user wants access to the Client folder, they put in their username and password and get access to their client folder. is this possible?
 
To make sure I understand - you have something like this:
Code:
/
    clients/
        dev/
            client1/
            client2/
            client3/
            ...
and you want each client N to see, but not modify, the contents of only the folder /clients/dev/clientN/
Right? Or is it just one folder /clients/dev/ and you want all clients to see but not modify the contents of that one folder?

Anyway, you want to read the apache manual, the section on authentication:
http://httpd.apache.org/docs/howto/auth.html#basic
 
I have:

Code:
/
    clients/
            client1/
            client2/
            client3/
            ...

And i want a password entry box to appear when a client wants access to clients/ depending on the username and password they supply determines witch client folder the are allowed access to.
 
Based on what you're saying it sounds like you basically want to create a series of single-user share points. I'm not a Linux expert, but I would sure think there's a way to do that.
 
Hi Adam, I'm sure there's probably a much simpler way of doing this and I'm probably not the best person to advise as I only have a limited knowledge on web development. However, if I was trying to do this I would consider using PHP sessions which can then access file paths and grant permissions via the use of a MySQL database.

Like I said, I'm possibly way off the mark here, but that's certainly the direction I would consider looking in.

Ian
 
the simplest might just be to use apache's builtin authentication modules.

on OS X read file:///Library/WebServer/Documents/manual/howto/auth.html
 
Browni said:
No this does sound right idea i will look into that. BTW ive linked you :)

Hi Adam, I'm actually looking at PHP sessions for somebody today. It's looks pretty complicated though, I'll let you know how it goes.

The link that mdnky left may be of some use. I bought an extension from project seven I think, which allows you to do PHP uploads. I think it only works with Dreamweaver though.

I have also added a link to you on both of our link pages.

Good luck with everything.

Ian
 
mdnky: Thanks for the link, looks good, even though i was planing on doing the Uploading via ftp. But i'll keep looking.

Ian: thanks :)
 
Back
Top