Add new ftps user: Difference between revisions
(Add new ftps user) |
No edit summary |
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 13:55, 21 November 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