Answer the question
In order to leave comments, you need to log in
Need to create a user with FTP/SFTP access only?
There is a folder /home/bitrix/www/images_canonical/
There is a user tltltl with a home directory /home/bitrix/www/images_canonical/ It is
necessary to make access only to this folder. Those. prevent the user from going to the directory above, etc.
How to do?
Answer the question
In order to leave comments, you need to log in
Create a group sftpusers
add the necessary users to this group
change the shell for these users to nologin
Configure sshd for this group:
/etc/ssh/sshd_config
Match Group sftpusers
ChrootDirectory /sftp/%u
ForceCommand internal-sftp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question