3.1 Starting NetWare FTP Server

Load the NetWare® FTP Server software from the NetWare server by using the nwftpd command.

When you start the software, the NetWare FTP Server uses the IP address of the host (HOST_IP_ADDR) and the port number (FTP_PORT), as defined in sys:/etc/ftpserv.cfg, the default configuration file, to bind to and listen for FTP client connection requests.

If these parameters are not defined in the configuration file, the NetWare FTP Server binds to all configured network interfaces and the standard FTP ports (port number 21).

To start the NetWare FTP Server software with a different configuration file (for example, myconfig.cfg), enter the following at the command line:

nwftpd -c [volname:[/dirname/...]]myconfig.cfg

Default directory = sys:/etc. Default volume= sys:

NOTE:FTP Server aborts if the configuration file specified with -c option does not exist.

3.1.1 Dynamic Configuration Updates

The nwftpd command supports dynamic configuration updates by default. This means that the changes made to the configuration file with which the server has loaded take effect dynamically. The administrator does not need to unload and reload the server for the changes to take effect.

However, it takes some time for the parameter values that were dynamically changed to take effect.

Disabling Dynamic Configuration Updates

To disable the dynamic configuration updates, use the following format:

nwftpd [-c [volname:[/dirname/...]]myconfig.cfg] -d

3.1.2 Creating an Anonymous User

NetWare FTP Server software supports an anonymous user account. This account provides users access to public files. You can enable or disable access to the anonymous user account by setting the ANONYMOUS_ACCESS parameter in the configuration file. By default, the parameter is set to No. Specify the path of the Anonymous user’s home directory in the ANONYMOUS_HOME directory parameter of the configuration file. If the ANONYMOUS_HOME path does not exist, anonymous login fails and anonymous user cannot be placed in sys:\public.

For more details, see Table 2-2.

To create an anonymous user, use the following format:

nwftpd -a [-c [volname:[/dirname/...]]myconfig.cfg]

Using the -a Option

When you use the -a option, NetWare FTP Server does the following:

  1. Creates the anonymous user, creates the home directory (if it is not available), and assigns the rights to the directory.

  2. On-screen prompts are displayed to enter the administrator name and password. The anonymous user is created in the eDirectory™ tree at the default context.

  3. The -a option modifies the configuration file for anonymous user access.

    However, it does not start the NetWare FTP Server. To start the NetWare FTP Server after this change, reload nwftpd.

  4. The configured anonymous home directory displays on the screen with an option to modify it.

  5. If the administrator does not specify a home directory, then the default directory is used. The anonymous user has only Read and File Scan rights to the default directory. If the administrator specifies the anonymous home directory, then the directory is created and the Anonymous user will get Read, File Scan, Create, Delete, and Modify rights to that directory.

  6. The server takes the anonymous user home directory from the configuration file and displays it on the screen with the option to modify the directory.

Rights

When you manually create the anonymous user through a method other than nwftpd -a, ensure that the anonymous user has adequate rights to the anonymous home directory configured in the FTP Server. If adequate rights are not given, the file operations for the anonymous user might fail.

Password

The FTP Server assigns a blank password to the anonymous user. When the anonymous user attempts to log in, even though the FTP server gets an e-mail account as a password, the anonymous user is logged on using a blank password.

The anonymous user login succeeds in the following conditions:

  • When you create the anonymous user by using nwftpd -a.

  • When you manually create the anonymous user and assign a password, but leave it blank.

The anonymous user login fails when you manually create the anonymous user, and when doing so, either assign a password that is not blank, or do not assign a password. This is because the FTP Server expects a blank password for the anonymous user.