Jail new user to specified folder SFTP access, disable ssh, give permision to edit www-data files, install wordpress.
as the title say, i want to give new user SFTP access to folder so he/she can install wordpress alone without root and without ssh access, and be able to edit www-data files, and also i want him to be jailed only in the folder that i will specify so he cant snoop around my server.
i tried so much tutorials from google, but in the end user cant edit files created by wordpress itself or wordpress cant install plugins, when i set the file to be owned by the user wordpress cant install plugins, if i make www-data to own the files the user cant edit them. Im going nuts here if someone has step by step tutorial on what should i do please help me.
here is my sshd.config file
Match User user1 AllowTcpForwarding no X11Forwarding no ChrootDirectory %h ForceCommand internal-sftp
my apache setup for the new subdomain is working.
Thanks in advance guys
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×