Remap Sub-Dir Clarification


#1

Hi,
I just want to make sure I’m understanding the remap functionality correctly.

I have domain1 managed by user1. I created a directory domain1/directoryX. I created a user2 and mapped directoryX into a directory in user2’s home folder.

I noticed that when I upload files, only user2’s files show up. I also noticed that when I use user1 to ftp into the domain and access that directory, I do not see user2’s files and if i upload files as user1, they will not show up on the webpage nor when I FTP in as user2.

Is this how this is supposed to function? Is there any way at all that two different FTP users could have full access to one directory (read, write access to all files, regardless who put them there)?

Thanks!


#2

That sounds a bit backwards. Remapping adds a directory to your website. That directory actually resides in User2’s home directory. You won’t see that directory in User1’s example.com folder.

If you want two users to have full access to that directory, both of you should FTP in as User2.

-Scott


#3

[quote]I noticed that when I upload files, only user2’s files show up. I also noticed that when I use user1 to ftp into the domain and access that directory, I do not see user2’s files and if i upload files as user1, they will not show up on the webpage nor when I FTP in as user2.

Is this how this is supposed to function?[/quote]
Uhm, yes that is how it is supposed to work. This is documented at the Apache web site under the Alias directive: http://httpd.apache.org/docs/1.3/mod/mod_alias.html#alias

Keep in mind that the url-path you see in a URL is not directly related to a filesystem path. The web server gets to interpret it different ways. It just so happens that for simple web sites one only needs to find files or directories relative to the document root (“web directory”).

So what the Remap Sub-Dir option does it tell the server for a particular url-path to find files or directories relative to a different directory in the filesystem. As a result there would be no need to have a physical directory with the same name in the “web directory” at the same time as the Remap Sub-dir/Alias.

No with FTP. Each user would have to use SFTP/SSH. Also, there is no “regardless”, all files and directories have a user and group ownership as well as permissions. The quick and dirty way is to share credentials of a single SFTP user. A lazy and less secure method would be some type of web-based file management solution. The advanced method would be to use UNIX groups - see http://wiki.dreamhost.com/Unix_File_Permissions_Cookbook#Recipe:_Setting_permissions_separately

:cool: openvein.org -//-


#4

Thanks for the help on that. Sounds like I should be looking into the groups more.

Thanks again,
Dom