uFTP Server

uftp server, open source ftp server, linux ftp server, linux ftp server for embedded, easy to configure ftp server, ftp server for initramfs

User Tools

Site Tools


supported-ftp-commands

Supported FTP commands

uFTP server supports the commands specified in this document.

USER [username]

USER followed by username string argument is the command required to login as the specified [username].

PASS

PASS followed by password string argument, is the command that must be sent after the USER command to complete the authentication procedure with the username and password pair associated to the FTP account.

AUTH

Not yet implemented, the supported authentication method is in plain text.

PWD

PWD returns to the client the directory path where the user is logged in.

SYST

SYST returns to the client information about the remote system.

FEAT

FEAT commands returns the FTP supported options.

OPTS

OPTS commands returns other FTP supported options.

TYPE A, TYPE I, TYPE F, TYPE S

Dummy command implementation, the transfer type is always set to binary.

ESPV

uFTP server opens a socket for the extended passive connection mechanism mode, it returns only the port without the address.

PASV

uFTP server opens a socket for the passive connection mechanism mode.

PORT

The FTP server opens a client connection to the specified PORT of the client (active mode).

ABOR

The command abort any file transfer opened with the client.

LIST [path(optional)]

The FTP server sends the list of files and directories, modification date, size, user and group ownership of the current path or the path specified in the parameter, sorting arguments are not yet implemented in the current uFTP software release.

NLST [path(optional)]

Similar to LIST command, the difference is that with NLST command all additional information of the files is not sent to the FTP client.

RETR [path]

The FTP client can request a file download from the specified path.

STOR [path]

The FTP client can request a file upload at the specified path.

CWD [path]

The FTP client can change the current working directory with the specified path.

REST [byte offset]

The FTP client can restart a download at the specified byte offset.

MKD [directory path]

Create a directory at the specified path.

DELE [path]

Delete the path specified as argument.

RMD [directory path]

Delete the directory specified in the path.

NOOP

Do nothing, this command is used by the client to keep the connection opened, uftp automatically close inactive connections.

SIZE [path]

Get the size of the inode path specified as argument.

RNFR [path]

Specify the file/directory source to rename.

RNTO [path]

Specify the file/directory target to rename, this command must be send after the RNFR command to rename a file or directory.

CDUP [path]

The client working directory is moved to one parent position “../”.

QUIT

Close the FTP connection.

SITE CHMOD [permissions] [commands]

The SITE CHMOD command can be used by FTP clients to change the permission of an inode (Folder, File or Link).

supported-ftp-commands.txt · Last modified: 2024/04/14 10:40 by kingk