Windows»Use Windows Explorer for ftp
  • RSS Feed

Last modified on 1/15/2015 3:01 AM by User.

Tags:

Use Windows Explorer for ftp

It is easy to ftp files from the Unix server to the Windows server.  You can simply cut and paste entire directories and all sub-directories.

Open a new Windows Explorer window.  You'll type the ftp command into the address box but first you must be aware of the ftp permissions on the Unix server before you do that.

Condition 1: Unix server allows root to do ftp

If the Unix server allows root to do ftp then you should use root with the following string in the address box.

ftp://root:passwd@10.10.18.20

The unix directories will appear in the folders section of Windows Explorer and you can navigate to the files you want to move.  Use cut and paste or drag and drop to move them to the Windows Server.  When you move a directory, all sub-directories will be moved too.

Beware of the permissions that Windows Explorer will give to the moved files on the Windows server.  They will not be what you want. You must go into korn shell (in Windows) and "chmod 666 *"  or "chmod 777 *"  to open up the files to all users.

If you get a Windows error message saying "Your current security settings do not allow you to download files from this location." you need to go into Internet Explorer -> Tools -> Internet options -> Security -> "Internet sites"  AND "Trusted sites".   Add "ftp://xxx.xxx.xxx.xxx"  where xxx is their SCO server's internal IP address to BOTH menu options for "Internet sites" AND "Trusted sites".

 

Condition 2: Unix server does not allow root to do ftp.

But if the Unix server doesn't allow root to do ftp, you'll have to use the other login name (probably mvuser) in the address box.

problem:

The normal ftp string won't work by itself because ftp always takes you to the home directory for mvuser which will be /u/usr/mvuser.  The Profits Plus /u/mvs directory is not a sub-directory of /u/usr/mvuser so you won't be able to get to /u/mvs.  

solution:

To solve the problem you'll have to put on your hacker hat and temporarily modify the /etc/passwd file and change the home directory for mvuser to root (/).   The next two lines are the before and after example of the mvuser line in the /etc/passwd file.

mvuser:U07dtIDq3pfSY,..OM:232:50::/u/usr/mvuser:/bin/sh     (before the change)

mvuser:U07dtIDq3pfSY,..OM:232:50::/:/bin/sh                 (after the change)

While the /etc/passwd file says mvuser's home directory is / you can use the following ftp command in the address box.

ftp://mvuser:passwd@10.10.18.20

The unix directories will appear in the folders section of Windows Explorer and you can navigate to the files you want to move.  Use cut and paste or drag and drop to move them to the Windows Server.  When you move a directory, all sub-directories will be moved too.

Beware of the permissions that Windows Explorer will give to the moved files on the Windows server.  They will not be what you want. You must go into korn shell (in Windows) and "chmod 666 *"  or "chmod 777 *"  to open up the files to all users.

Don't forget to change the Unix /etc/passwd file back after you're done!

If you get a Windows error message saying "Your current security settings do not allow you to download files from this location." you need to go into Internet Explorer -> Tools -> Internet options -> Security -> "Internet sites"  AND "Trusted sites".   Add "ftp://xxx.xxx.xxx.xxx"  where xxx is their SCO server's internal IP address to BOTH menu options for "Internet sites" AND "Trusted sites".