< Home

user

Function

The user command changes the current FTP user when the local device is connected to the FTP server.

Format

user user-name [ password ]

Parameters

Parameter Description Value
user-name Specifies the name of a login user. The value is a string of 1 to 255 case-insensitive characters without space.
password Specifies the login password. The value is a string of 1 to 255 case-sensitive characters without space, single quotation mark, or question mark.

Views

FTP client view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the user command to change the current user on the FTP server.

Precautions

After you run the user command to change the current user, a new FTP connection is set up, which is the same as that you specify in the ftp command.

Example

# Log in to the FTP server using the user name tom.

<HUAWEI> ftp 10.137.217.201
Trying 10.137.217.201 ...
Press CTRL+K to abort
Connected to 10.137.217.201.
220 FTP service ready.
User(10.137.217.201:(none)):huawei
331 Password required for huawei.
Enter password:
230 User logged in. 
[ftp] user tom
331 Password required for tom.
Enter password: 
230 User logged in.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >