CX11x, CX31x, CX710 (Earlier Than V6.03) , and CX91x Series Switch Modules V100R001C10 Command Reference 17
This document provides the configuration commands of each feature supported by the CX11x&CX31x&CX91x series switches module, including the syntax, view, default level, description, parameters, usage guideline, related commands, and example of each command.
This document provides the configuration commands of each feature supported by the CX11x&CX31x&CX91x series switches module, including the syntax, view, default level, description, parameters, usage guideline, related commands, and example of each command.
local-user ftp-directory
Function
The local-user ftp-directory command sets the File Transfer Protocol (FTP) directory for the local user.
The undo local-user ftp-directory command restores the default FTP directory for the local user.
By default, the FTP directory for the local user is null.
Parameters
Parameter | Description | Value |
---|---|---|
user-name | Specifies the username. | The value is a character string in format user name+domain name delimiter+domain name. For example, in admin@huawei.com, @ is the domain name delimiter. The user name and domain name are case-insensitive, and cannot contain spaces and the following characters: / \ : * ? " < > | @ ' %. When security policy is enabled for local account, the value of user-name is a string of 6-253 characters; when security policy is disabled for local account, the value of user-name is a string of 1-253 characters. If no delimiter is specified, the system considers the entire character string as user name and the user belongs to the default domain. |
directory | Specifies the directory that the user accesses when logging in to the device through FTP. | The value is a string of 1 to 255 case-sensitive characters without any space. |
Usage Guidelines
Usage Scenario
When you need to configure the device as an FTP server so that the local user can access the device through FTP to add, delete, or modify files on the device, you can run the local-user ftp-directory command to set the FTP directory for the local user.
If the FTP directory is unspecified, the local user cannot log in to the device through FTP.
Prerequisites
The user name must have been created using the local-user password command before the local-user ftp-directory command is run.
Precautions
When the local-user ftp-directory command is used, the local user accesses the specified FTP directory after logging in to the device through FTP.
The FTP directory specified in the local-user ftp-directory command must be an existing and valid one so that the system can identify it. Otherwise, the local user fails to log in to the device through FTP.