The set default ftp-directory command sets the default working directory for FTP users.
The undo set default ftp-directory command cancels the setting of the default directory for FTP users.
By default, FTP users have no working directory.
Parameter | Description | Value |
---|---|---|
directory |
Specifies the default working directory for FTP users. |
The value is a character string in the format of [ <drive> ][ <path> ]. An absolute <path> name is a string of 1 to 255 characters. A relative <path> name is a string of 1 to 128 characters. Up to 8 levels of directories are supported. An absolute <path> is in the format of <drive> [ <path> ], and a relative <path> is in the format of <path>. That is, a relative <path> is the root <path> of the current working <path>. |
Usage Scenario
Before you perform FTP operations on a file, you must specify the FTP working directory. Otherwise, you cannot use FTP to access a device.
The command takes effect for both ipv4 and ipv6 users.
Precautions
FTP users are classified as local authentication users and remote authentication (RADIUS and HWTACACS) users.