FTP question

FTP question

Posted by: mikeamos
Posted on: 2008-02-12 09:50:00

I added a User to my FTP list named "alan." He uploaded a file that I need to be able to access, however, the location of the file is in /home/alan. How do I access that file via a browser? The directory "/alan/" does not exist when I list the index of my website. Where does that directory exist?

Re: FTP question

Posted by: rlparker
Posted on: 2008-02-12 14:45:00

In reply to:

He uploaded a file that I need to be able to access, however, the location of the file is in /home/alan. How do I access that file via a browser?


As it sits now, you can't... it is just file in that user's directory. You will have to make it available on the web somehow.

In reply to:

The directory "/alan/" does not exist when I list the index of my website. Where does that directory exist?


See the above answer . However, there are ways to files in another user's directories available on your website described in the DreamHost wiki. smile

--rlparker

Re: FTP question

Posted by: Starbuck
Posted on: 2008-02-20 18:18:00

Related situation here but I'm going backwards:
I have an area on my website for clients and I was creating unique directories for each client like:
/client/aa
/client/bb
I created a user aa then remapped the subdir:
from /client/aa to /home/aa/files

I then put the client into its own group as grpaa in case I create more users for each client.
I added my main user to that group as well, so now both users are in the default pgxxxx group and grpaa.

Here's the issue: I can create files in /client/aa with main, chgrp all files to grpaa, and change all permissions (for now) to 770 or even 777. I can shell in as aa and do the same in /home/aa/files which looks like it's a real directory - I didn't create it, the CP created it when I did the mapping. But aa can't see files created by main and main can't see files created by aa.

So now that the mapping is created and all permissions are in place, why can't I see files from both directions?

I hope this helps the OP too...

TIA!

Re: FTP question

Posted by: Atropos7
Posted on: 2008-02-20 19:18:00

In reply to:

Here's the issue: I can create files in /client/aa with main, chgrp all files to grpaa, and change all permissions (for now) to 770 or even 777. I can shell in as aa and do the same in /home/aa/files which looks like it's a real directory - I didn't create it, the CP created it when I did the mapping. But aa can't see files created by main and main can't see files created by aa.


Well if theres no public read permission (ie, xx0) that will basically prevent Apache from accessing the file. If Apache can't read the file, it won't serve it.






cool openvein.org -//-

Re: FTP question

Posted by: Starbuck
Posted on: 2008-02-20 20:12:00

That makes sense for the web server, and I didn't think about that, thanks. But the problem is that I mapped /client/aa to /home/aa/files and whether from shell or FTP, files created in one directory can't be seen in the other.

Tags: ftp listftp list