Solved

'Access denied' on FTP command in Windows 2012

Posted on 2014-02-07
6
598 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Group Policy Question 7 76
Windows Update Isn't working 41 189
Skype password reset 1 32
Question as a new SCCM Admin 3 40
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

730 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