Add new ftps user: Difference between revisions
Jump to navigation
Jump to search
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 | |||
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