< Home

set default ftp-directory

Function

The set default ftp-directory command configures the default FTP working directory.

The undo set default ftp-directory command disables the default FTP working directory.

By default, no default FTP working directory is configured.

Format

set default ftp-directory directory

undo set default ftp-directory

Parameters

Parameter Description Value
directory Specify the default FTP working directory. The value is a string of 1 to 160 case-insensitive characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the set default ftp-directory command to configure a default FTP working directory for all FTP users at one time.

Precautions

  • The set default ftp-directory command takes effect only when the device functions as an FTP server and the user function as an FTP client.
  • You can run the local-user ftp-directory command to configure an authorized working directory for a local user.

  • If you have configured the FTP working directory by running the local-user ftp-directory command, you must use this FTP working directory.

  • You can run the lcd command to view the working directory of FTP users.
  • If no FTP working directory is specified on the device, FTP users cannot log in to the device, and are prompted that the working directory is unauthorized.

Example

# Set the default FTP working directory to flash:/.

<HUAWEI> system-view
[HUAWEI] set default ftp-directory flash:/
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >