Sponsored Content
Top Forums UNIX for Dummies Questions & Answers User ID syntax to FTP to Windows Post 302289736 by tekster757 on Friday 20th of February 2009 10:16:20 AM
Old 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

FTP from Unix to Windows: Need help!

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

Syntax problem with Unix ftp get command

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

FTP - switching user syntax

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

ftp to windows

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

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

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

FTP from Windows to 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

Problem syntax with user-defined function

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

Help syntax to restore partition from ftp

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

Help Simple FTP Script Here Syntax

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
ftpconfig(1M)						  System Administration Commands					     ftpconfig(1M)

NAME
ftpconfig - set up anonymous FTP SYNOPSIS
ftpconfig [ftpdir] ftpconfig -d ftpdir DESCRIPTION
The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system files. This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account, creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded. OPTIONS
-d Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest FTP user accounts. OPERANDS
The following operands are supported: ftpdir The absolute pathname of the directory under which the anonymous FTP area is set up. EXIT STATUS
The following exit values are returned: 0 Successful completion 1 Improper usage of the command 2 Command failed ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5) SunOS 5.10 1 May 2003 ftpconfig(1M)
All times are GMT -4. The time now is 03:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy