login about faq

I am running on a windows system. This works when I use the password on the command line. When I try to run with a password file, the command fails.

call sftpg3.exe -B wftp_script.txt --password=file://C:Scriptbinwftp_pw.txt

Failed to get password: File C:Scriptbinwftp_pw.txt couldn't be read: faulty permissions.

The password file in in the directory I am running from. -rw-rw-rw- 1 user 0 8 2012-01-05 12:45 C:Scriptbinwftp_pw.txt

asked Jan 05 '12 at 20:43

gil's gravatar image

gil
1223


The password file must not be readable by other users.

SSH client applications do check the permissions/ACL on the password file, similarly as they do check it on private keys and similar sensitive information. It will refuse to use information that can be maliciously altered by other users.

The access control list can allow access for SYSTEM user and group of administrators and the owner. If other users can read this file, it will refuse to use it.

It worked for me after setting proper Access Control List. Version of Client I used was 6.2.2.

Was this helpful?

Regards

Martin

link

answered Jan 05 '12 at 21:41

Martin%20Dobsik's gravatar image

Martin Dobsik ♦
599126

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×21
×21
×17

Asked: Jan 05 '12 at 20:43

Seen: 4,391 times

Last updated: Jan 05 '12 at 21:41

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.