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

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.

Format

local-user user-name ftp-directory directory

undo local-user user-name ftp-directory

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.

Views

AAA view

Default Level

3: Management level

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.

Example

# Set the FTP directory for the local user hello@163.net to flash:/.

<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] local-user hello@163.net password irreversible-cipher Huawei@2012
[*HUAWEI-aaa] local-user hello@163.net ftp-directory flash:/
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1000041693
Views:5049749
Downloads:2013
Average rating:4.0Points

Digital Signature File

digtal sigature tool