02-20-2009
User ID syntax to FTP to Windows
Hello,
I have searched the forums and may not be putting in the right keywords, but hopefully someone will be kind enough to help...
It's been awhile since I've ftp'd to a Windows server, but no matter how I try to connect, it will not let me, although I have no issues setting up a connection for the same ID in FTP-Pro and connecting.
On the command line, I am trying the following:
ftp fullyqualified.servername.com
when it prompts me for the user name I have tried:
ms/username
username
"ms/username"
and every variable in between - single quotes, even back slashes or back quotes (which don't work either of course). It *does* accept the user, but when I put in the password, at that point it simply says login failed. I use this ID every day on other servers, so I know the password is correct, and the ID is set up on the UNIX servers, but I can tell through FTP-pro that it's a windows FTP server because the ID there is set up as "ms/username".
I have also tried:
ftp -niv fullyqualified.servername.com
and it doesn't ask me right away for the user and password, but when I go to change directories, then it says "530 Please login with USER and PASS."
How can I successfully log-in?
When I have scripted connections like this elsewhere in the past, I always scripted it as:
ftp -niv fullyqualified.servername.com
ftp -nv ${FTPHOST} << ENDFTP >> ${TMPLOG} 2>&1
user ${FTPUSER} ${FTPPASS}
get ${FILE}
quit
ENDFTP
or
ftp -niv fullyqualified.servername.com
ftp -nv ${FTPHOST} << ENDFTP >> ${TMPLOG} 2>&1
quote user ${FTPUSER}
quote pass ${FTPPASS}
get ${FILE}
quit
ENDFTP
None of this is working for me though, no matter what I try...
Thank you in advance for any help you can offer!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone,
I know nothing about Unix, however, I developed a Windows VB app that takes ascii flat files and generates formatted excel reports in single or batch mode. There are about 200 reports that come off the mainframe from a unix box which I have to manually download into my Windows... (3 Replies)
Discussion started by: eguy
3 Replies
2. HP-UX
An outside vendor has staged 2 batch files for us and I've tried to retrieve the files using the commands that they've indicated I could use to retrieve one file at a time. I've tried using this command in a shell script after a successful connection to their server:
get "$$ ID=IL096869 BID='PGP... (2 Replies)
Discussion started by: mheinen
2 Replies
3. UNIX for Dummies Questions & Answers
Running the following shell script,
#!/usr/bin/ksh
set -x
swdofile=/opt/SWDO_IN1V01P001_1.csv
USER='myusername'
PASSWD='mypassword'
HOST='myhostname'
ftp -n $HOST << SCRIPT
quote USER $USER
quote PASS $PASSWD
su - BRA -c put $swdofile
quit
SCRIPT
exit 0
but not managing to get the... (1 Reply)
Discussion started by: daveaasmith
1 Replies
4. HP-UX
Hi
I am trying to do an ftp to window w2k using the script
------------------------------------------------------
#!/bin/ksh
#script2 I found this script on UNIX script website
userstr="dt4406\iusr_vantage_dev"
W2Kservername="130.13.1.165"
pwstr="verint1!"
file1="TRP1run.sql"... (4 Replies)
Discussion started by: avivcohen
4 Replies
5. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
6. Solaris
Dear All,
As I am new to Solaris ..I need some help
How is FTP access given from Windows machine to solaris machine.
The scenario is that :
I have a Xp host system and Solaris as my guest OS in my vmware.
I need to tranfer some files from Windows to Solaris.?
I am using... (7 Replies)
Discussion started by: bharat_
7 Replies
7. UNIX for Dummies Questions & Answers
Hi !
I got a script from Arabic to Roman numeral conversion - .comp.lang.awk, that I would like to modify to apply it on my input file.
input ("|"-delimited fields):
AAAAAA|1, 10, 13, 14, 25, 60
wanted output:
AAAAAA|I, X, XIII, XIV, XXV, LX
script.awk:
#!/usr/bin/gawk -f
... (11 Replies)
Discussion started by: lucasvs
11 Replies
8. UNIX for Dummies Questions & Answers
Hi, I found info on the internet to backup a partition to ftp.
But I am unable to properly format the syntax to restore the partition.
This is being done from a ssh logged in session to a server booted with a liveCD.
backup:
dd if=/dev/sda5 bs=2048 conv=noerror,sync | lftp -u user,passwd... (7 Replies)
Discussion started by: chang-li
7 Replies
9. Shell Programming and Scripting
I have a list of IP address and want to be assess whether FTP is allowing
FTP access. I don't want to use lousy NT shell, but cannot get the syntax down on this. ftphosts.txt is a simple list of IP adresses.
I want to iterate through the IPS and do a simple
ftp IPadress
user ftp password... (15 Replies)
Discussion started by: gdotoli
15 Replies
ftp(4) File Formats ftp(4)
NAME
ftp - FTP client configuration file
SYNOPSIS
/etc/default/ftp
DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and
are ignored.
Behavior Directives
The ftp file supports the following behavior directives:
FTP_LS_SENDS_NLST=yes | no
The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send LIST instead. In order to
make the Solaris ftp client send LIST when the ls command is issued, set FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes
by default.
If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is
specified in /etc/default/ftp.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbipr |
+-----------------------------+-----------------------------+
SEE ALSO
ftp(1), attributes(5)
SunOS 5.10 22 Oct 2002 ftp(4)