Add new ftps user: Difference between revisions

From Apoyar Wiki
Jump to navigation Jump to search
(Add new ftps user)
(No difference)

Revision as of 12:01, 11 August 2017

Login (SSH) to the server in question and run the 2 commands:

useradd -m -d /var/www/ -G www-data -s /bin/bash username

passwd username

Where:

  • /var/www/ is the folder you want the user to have access to. Don't give him more permissions than needed! Sometimes they only need an import folder or so.
  • www-data is the group nginx (or apache) is running under. This is necessary for the user to be able to upload files.
  • /bin/bash is the default login shell. It won't work without this.
  • username is the desired username
  • with the passwd command you set the password