Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m creating a droplet using the Wordpress image. I want to create a sftp user that can access the theme folder (/var/www/html/wp-content/themes) but in the same time not access the plugin folder (/var/www/html/wp-content/plugins/).
This is what i did so far sudo useradd -d /var/www/html/wp-content/themes newuser passwd newuser
in /etc/ssh/sshd_config i added
Subsystem sftp /usr/lib/openssh/sftp-server Match User newuser ChrootDirectory %h AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp
I can connect with the new sftp user but the user can navigate and reach the plugin folder.
How can i prevent that and limit this user to this home folder (var/www/html/wp-content/themes) .
Is there a way i can “exclude” a folder ?
Thank you
WildcatMedia
jeffs
0621335d663b4b699a60eb27e28153
accesstrax
Dwight Trumbower
admin
yimprogramming
samunyi90
1d6ce141ab5444dfb1ea2dd29cf4b1
Matt Fricker
joel9b158e40551b15093f213f