Anonymous user
Add new ftps user: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
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: | 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 | |||