Adding an SFTP user

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

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

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

create_sftp_user.sh Usage:

create_sftp_user.sh [-r] [username] [directory] [write_enable]

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

  -c             Change password
  -r             Remove user
  -l             List SFTP users

Please note: You cannot create an SFTP account that has the same name as an SSH account

Examples

Create user

To create a user called example

/microcloud/scripts_ro/create_sftp_user.sh example

Remove user

To remove the user example

/microcloud/scripts_ro/create_sftp_user.sh -r example

Change a users password

To change the password of a user called example

/microcloud/scripts_ro/create_sftp_user.sh -c example