Command Reference FTP Server Commands
ftp-server topdir
Use this command to set the directory range for the FTP client to access to the FTP server files. Use
the no form of this command to prevent the FTP client from accessing to the FTP server files.
ftp-server topdir directory
no ftp-server topdir
Parameter
Description
Parameter Description
directory
Set the top-directory.
Defaults
By default, no top-directory is configured.
Command
Mode
Global configuration mode.
Usage Guide
The FTP server top directory specifies the directory range of the files accessed by the client. Can the
FTP client accesses to the files on the FTP server with the top directory correctly specified.
Without this command configured, FTP client fails to access to any file or directory on the FTP server.
Configuration
Examples
The following example shows how to enable the FTP Server and make the FTP client access to the
syslog content only:
Ruijie(config)# ftp-server topdir /syslog
Ruijie(config)# ftp-server enable
The following example shows how to remove the top-directory configuration:
Ruijie(config)# no ftp-server topdir
Related
Commands
Command Description
N/A N/A
Platform
Description
N/A
ftp-server username
Use this command to set the login username for the FTP server. Use the no form of this command to
cancel the username configuration.
ftp-server username username
no ftp-server username
Parameter
Parameter Description