/go/ftp manages FTP sub-accounts for a hosted domain: creating one (with its own Linux system user, chrooted-style home directory, and vsftpd permission file), editing its password, deleting it, or toggling its upload, download, and delete permissions individually. The call is appended to /var/log/go/ftp.log. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Create an FTP sub-account under a domain's www folder
/go/ftp example.com /home/example.com/www/uploads uploaduser 'MyP[DollarSign]ssw0rd'
Options
| Argument | Notes |
|---|---|
<domain> |
The hosted domain; used to look up its system username and (for new accounts) to validate the directory. |
<directory> |
Must start with /home/<domain>/ (see Known issues about how this is checked). |
<user> |
The FTP sub-account’s Linux username. Not validated for length or character rules the way hosting account usernames are (see create). |
<password> |
See Password encoding for the placeholder scheme, and the warning above about unquoted use. |
<action> |
One of edit, delete, EnableUpload, DisableUpload, EnableDownload, DisableDownload, EnableDelete, DisableDelete, or omitted to create a new account. |
Password encoding
Because a raw password can contain shell- or URL-sensitive characters, the panel is expected to send four characters as placeholder tokens, which this command decodes before using the password:
| Placeholder | Becomes |
|---|---|
[DollarSign] |
$ |
[AndSign] |
& |
[EqualSign] |
= |
[HashSign] |
# |
Other characters, including a literal space, are not placeholder-encoded and are passed through as-is — see the warning about unquoted use below.
Examples
# Create a sub-account
/go/ftp example.com /home/example.com/www/uploads uploaduser 'Str0ngP[HashSign]ss'
# Change its password
/go/ftp example.com /home/example.com/www/uploads uploaduser 'NewP[DollarSign]ss' edit
# Disable uploads for it
/go/ftp "" "" uploaduser "" DisableUpload
# Delete it
/go/ftp "" "" uploaduser "" delete
Output
Account uploaduser Created.
-----------FTP Account Info----------
Host: example.com
Username: uploaduser
Password: MyP$ssw0rd
uploaduser: FTP upload is currently disabled.
Invalid directory path.
example.com already exists.
Username uploaduser not exists.
See the full reference at /go/ftp and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
