Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Ftp Setup in 7.1 and 7.0 VMWare
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: VMWare - ftp setup
  • SDP: 7.0.0, 7.1.0
  • Target: VMWare
________________________________________________________________________

Question
________________________________________________________________________

I would like to enable FTP support on my 7.0 and 7.1 VM targets. How can I achieve this?

________________________________________________________________________

Recommendation
________________________________________________________________________

7.0 Solution:


FTP resources (binaries, libs, config files) are included in prebuild 7.0 VM that is available in QNX Software Center: QNX SDP 7.0 x86-64 virtual machine for VMware

To enable FTP, make the following modifications:
  • Uncomment the two FTP lines in inetd.config
  • Allow preferred user/users in ftpusers
  • Run: inetd
--------------------------------------------------------------------------------

7.1 Solution:

FTP resources (binaries, libs, config files) are not included in the generated 7.1 VMware images that you can create in Momentics or by running mkqnximage.

The following describes one approach to get FTP working in 7.1:
  • Source 7.1 environment
  • In an empty folder, Run: mkqnximage --type=vmware
  • Go into /local/snippets and make the following modifications:
Data_files.custom, ADD:

[gid=0 uid=0 perms=644] var/etc/ftpusers = {
root allow
}

>>> Post_start.custom, ADD:

inetd /system/etc/inetd.conf &

System_files.custom, ADD:

xbin/telnetd=usr/sbin/telnetd
xbin/inetd=usr/sbin/inetd
xbin/ftpd=usr/sbin/ftpd
[gid=0 uid=0 perms=444] pam/config/ftpd={
# The PAM configuration file for the 'ftpd' service

auth requisite pam_qnx.so

account requisite pam_qnx.so

session requisite pam_qnx.so

password requisite pam_qnx.so
}
etc/inetd.conf={
telnet stream tcp nowait root /system/xbin/telnetd in.telnetd
ftp stream tcp nowait root /system/xbin/ftpd in.ftpd -l
}

NOTE: When you FTP to the 7.1 VM (i.e. a VM generated using Momentics), you may notice that attempts to run "ls" do NOT list the contents of the folder. The only thing you see is:

229 Entering Extended Passive Mode (|||65473|)
150 Opening ASCII mode data connection for '/bin/ls'
226 Transfer complete

HOW TO FIX: ftp needs "/bin/sh". The 7.1 VM does not have "/bin/ls". It has "/system/xbin/ls". You can modify output/build/ifs.build to include:
procmgr_symlink /system/xbin/ls /bin/ls
________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.