Solved

'Access denied' on FTP command in Windows 2012

Posted on 2014-02-07
6
533 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This collection of functions covers all the normal rounding methods of just about any numeric value.
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

760 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

17 Experts available now in Live!

Get 1:1 Help Now