Solved

'Access denied' on FTP command in Windows 2012

Posted on 2014-02-07
6
561 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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). …
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.

821 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