Solved

'Access denied' on FTP command in Windows 2012

Posted on 2014-02-07
6
548 Views
Last Modified: 2014-02-14
Attempting a Put command between servers and get 'Access denied'. Yet when "/" in the path are swapped for "\" it succeeds. This used to work before 2012.

The simple fix would be to just start using back-slashes, but we'd have a lot of scripts to change. And, these scripts are still used for Win 2008 servers ...

Is there a Windows/FTP setting we can change to accommodate this?
0
Comment
Question by:brownkm82
  • 4
  • 2
6 Comments
 
LVL 16

Expert Comment

by:AlexPace
ID: 39843346
The scripts have forward slashes in the names of local files on a windows box?

Please give an example of a failing command.
0
 

Author Comment

by:brownkm82
ID: 39857163
Sorry, meant to get back to earlier.

Here's what the User wrote:

The following command fails with message 'access is denied'
put 268CHRT /output/test2

The following command is successful:
put 268CHRT \output\test2

Hope that helps,
Ken
0
 
LVL 16

Expert Comment

by:AlexPace
ID: 39859227
Run it in verbose mode and the output will indicate if the error is due to a server response or a client-side error.

put is not an FTP protocol-level verb, it is a command in the ftp.exe client that will send a PORT verb, wait for the server's response, then send a STOR verb on the control channel, wait for the server's inbound connection on the data channel, then write the file contents to the connection until EOF and wait for the server's response on the control channel.

So obviously a lot of things have to happen under the hood involving both the client and the server and just knowing access is denied doesn't tell you if the client can't access the source file or the server won't allow the file to be saved or maybe something else.... in verbose mode you can often infer what happened by looking at the last thing that actually happened in the FTP protocol-level conversation.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 16

Expert Comment

by:AlexPace
ID: 39859252
I don't think there have been any substantial changes to ftp.exe command line client in a decade so I suspect something else like local permissions, local firewall, network firewall/proxy or somesuch issue external to ftp.exe
0
 
LVL 16

Accepted Solution

by:
AlexPace earned 150 total points
ID: 39859291
Also, if you find yourself having to change a lot of script anyway you might reconsider the wisdom of using ftp.exe for important business processes since seems like basically abandonware at this point.  Consider instead using WinSCP or Robo-FTP.  Both support scripting.  WinSCP is free. Robo-FTP is not but it has actual support where you can open a ticket and get help for your specific issue rather than just posting to a forum... it also has a more powerful script language that, to my mind, is closer in syntax to windows batch files.  The best for you will depend on your needs and perhaps how hard it is to requisition new software... if you have to deal with accounting trolls .... well yuck.
0
 

Author Closing Comment

by:brownkm82
ID: 39860362
They ended up changed their scripts in the end. But I did pass this on to them especially the part about using something like Robo-FTP.

Thanks for all your help,
Ken
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now