# urbestack-ftp-account-add

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-ftp-account-add --user CUSTOMER --name NAME --domain DOMAIN --directory /dir [--expires-at TIME] --password-stdin
```

## Description

Creates an FTP account for the customer selected by --user. The login is NAME@DOMAIN, and --domain must be one of the customer's own domains. The name before @ is 1 to 32 characters. The login must be distinct from existing FTP logins and from the customer's own login. The customer's package may limit the number of FTP accounts.

Use --password-stdin to supply the required password on standard input. The password must be 8 to 128 printable characters. UrbeStack hashes it with SHA512-CRYPT, the same format used for system passwords.

Give --directory a path as shown in the Files section. Use / for the customer's home directory. UrbeStack creates any missing directories with mode 0755 and gives the customer ownership. The FTP account is confined to the selected directory and its contents. UrbeStack updates the ProFTPD users file immediately, and ProFTPD reads it at each login.

With --expires-at, give a future UTC time such as 2026-11-04T09:30:00Z. The nightly run removes the account after that time and preserves the directory. The account has no expiration by default.

## Same in the API

- [POST /ftp/accounts](https://urbestack.com/docs/api/post-ftp-accounts.md): Create an FTP account

## Command family: ftp

- [urbestack-ftp-account-del](https://urbestack.com/docs/commands/urbestack-ftp-account-del.md): Deletes the FTP account identified by the full NAME@DOMAIN login in --name and owned by the customer in --user.
- [urbestack-ftp-account-list](https://urbestack.com/docs/commands/urbestack-ftp-account-list.md): Lists FTP accounts with their owners and directories.
- [urbestack-ftp-account-set](https://urbestack.com/docs/commands/urbestack-ftp-account-set.md): Changes the password, directory or both for a customer's FTP account.
- [urbestack-ftp-install](https://urbestack.com/docs/commands/urbestack-ftp-install.md): Installs and starts ProFTPD using UrbeStack's configuration.
