Adding an FTP user

Adding a FTP user is performed via SSH. Log into your acc server and switch user to root

su -l root
/microcloud/scripts_ro/create_ftp_user.sh -h

There are a number of options that can be supplied to create a FTP user

create_ftp_user.sh Usage:

create_ftp_user.sh [-r|-l|-p] [username] [directory] [write_enable]

  username       Username (eg. media_user)
  directory      Chroot directory (eg. /microcloud/domains/)
  write_enable   Write access [yes|no]

  -r             Remove user
  -l             List users
  -p             Send credentials copy to pastebin

Examples

Read only user

To create a read-only user on example.com in the media directory only, with the username example-media

/microcloud/scripts_ro/create_ftp_user.sh example-media /microcloud/domains/example/domains/example.com/http/media no

Write user

To create a write user on the whole document root for example.com

/microcloud/scripts_ro/create_ftp_user.sh example-main /microcloud/domains/example/domains/example.com yes