-----Original Message-----
Subject: VxWorks 5.3.1 FTP Server
From: "Engineering group (1)" <mwr...@cct.co.uk>
Date: 1997/09/23
Message-Id: <875005830.12726.0...@news.demon.co.uk>
Newsgroups: comp.os.vxworks
We have code running under VxWorks 5.3 (x86) and I have just rebuilt evrything for version 5.3.1. All is OK apart from the fact that the FTP server will not let me log in. The documentation states that there is no username or password checking but the error I get from the FTP client on the host indicates that my password is invalid. Any ideas?
[Julian Day]
FROM SPR 8602:
The reason is that Tornado 1.0.1 (VxWorks 5.3.1) is deliverd with an ftpdLib.o compiled with INCLUDE_SECURITY enabled. Therefore the ftp deamon always asks for a valid username and password.
RESOLUTION:
1. In target/config/all/configAll.h
Place the following defines in the 'Included Software Facilities':
#define INCLUDE_SYM_TBL (or INCLUDE_CONFIGURATION_5_2)
#define INCLUDE_SECURITY
You can see the default user name ("target") and password ("password")
under
#define LOGIN_USER_NAME ...
#define LOGIN_PASSWORD ...
2. The option INCLUDE_CONFIGURATION_5_2 will give a target shell, plus target-based tools, whereas INCLUDE_SYM_TBL simply includes the symbol
table facilities.
If you use the INCLUDE_SYM_TBL option, then you will need to make an additional change. In the file target/config/all/usrConfig.c, there is
the following block of code:
/* initialize interactive shell */
#ifdef INCLUDE_SHELL
#ifdef INCLUDE_SECURITY /* include shell security */
if ((sysFlags & SYSFLG_NO_SECURITY) == 0)
{
loginInit (); /* initialize login table */
shellLoginInstall (loginPrompt, NULL); /* install security program */
/* add additional users here as required */
loginUserAdd (LOGIN_USER_NAME, LOGIN_PASSWORD);
}
#endif /* INCLUDE_SECURITY */
...
You need to copy the code bracketed by INCLUDE_SECURITY to a position
outside the INCLUDE_SHELL brackets.
SPR / PATCH: 8602
KEYWORDS: FTPD, FTP, SECURITY, PASSWORD
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 353 |
Nodes: | 16 (2 / 14) |
Uptime: | 74:31:08 |
Calls: | 7,639 |
Calls today: | 3 |
Files: | 12,802 |
Messages: | 5,691,777 |