Transfering files between FTP Users


#1

I have created a number of FTP users and they can upload files.

I now need to transfer files from one user to a folder under my “admin” control. I login in with both users but when I try and do this via my client (SmartFTP) I get an error:
Software caused connection abort

I really don’t want to download them to my local PC then upload them again because it’s 2.5Gb worth of files.

Am I doing something wrong?

In the past when I tried this I thought that it downloaded them to my pc then back upl again, but I could be wrong.

Any suggestions?
TIA

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#2

Will mv command in shell help you?

More info about Unix Commands, you can refer to
http://wiki.dreamhost.com/UNIX_commands#Moving_files

Save $97 (MAX Discount) with code: [color=#CC0000]97YES[/color] Sign Up NOW or More Codes Here


#3

Thank you for your reply.

Unfortunately I don’t exactly know what shell access is (Except it’s some sort of text based *nix access system) and certainly don’t know how to use it.

I’ve decided to take the long route and download to my PC then convert the files to .fv and then uplaod them. Unfortunately DreamHost’s converter couldn’t do it.

If I have to do a lot more I’ll rethink my plan.

Thanks again.

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#4

Sorry, mv does not work for you if you are moving files between different users.

How about remapping the folder? You can do it via DH panel --> Domains --> Remap Sub-Dir
http://wiki.dreamhost.com/KB_/Account_Control_Panel/Domains::_Remap_Sub-Dir

Save $97 (MAX Discount) with code: [color=#CC0000]97YES[/color] Sign Up NOW or More Codes Here


#5

You must have read my mind! I tried remapping the folder but that only seems to allow easy browser access. The folder doesn’t appear in my FTP list. :frowning:

Thanks again.

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#6

Ah ha… Your files are outside the domain.com folder. But you should see them in your FTP list. I don’t think you can put the files elsewhere than your home folder.

Your home folder contains Maildir, Logs, yourdomain.com, and yourfolder. You do not see Maildir, Logs if you are using WebFTP.

I hope your files are in your home folder. Otherwise the commands below are meaningless :stuck_out_tongue:

If you want to move yourfolder to another user’s folder, you can use remap sub-dir and mv together to achieve this. I’ll try to make it clear as much as I can.

  1. Log into shell and use mv command to move yourfiles into yourdomain.com folder
    mv yourfolder yourdomain.com/yourfolder

  2. Remap this folder to another user’s folder. Now another user has the access to the folder.
    map /home/user/yourdomain.com/yourfolder
    to /home/admin/yourfolder

  3. Log into shell with admin and use mv command again to move yourfiles to another user’s account.
    mv /home/user/yourdomain.com/yourfolder /home/admin/yourfolder

Here are some command you may need. You can use putty to log into shell.
pwd: show current folder
ls: list all files and folders of current folder
cd foldername: go to folder
cd … go up to parent folder

Do not forget to remove remap after everything is done.

Save $97 (MAX Discount) with code: [color=#CC0000]97YES[/color] Sign Up NOW or More Codes Here


#7

No, the files are in a user’s folder.

It’s all academic now because Dreamhots’s convertor could convert the files to .flv anway.

Thanks for the shell instruction but I wouldn’t even know where to start using them!

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#8

FTP limits users to their home directory only. Remapping is a web (Apache) feature, and has no impact on the physical structure of directories.

Due to UNIX permissions, users generally can’t write in other users directories, but SFTP will get you access to all of your users’ directories if properly configured:
http://wiki.dreamhost.com/KB_/Account_Control_Panel/Users::_Groups
http://wiki.dreamhost.com/Unix_Groups

-Scott


#9

Thank you for your reply.

The links look like they will accomplish what I need. If I have to do this on a regualr basis I implement user groups.

Thanks.

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters