Report this

What is the reason for this report?

Ubuntu 20.04 create user with access to a single directory

Posted on June 27, 2020

Hello!

I created an Ubuntu 20.04 droplet and I want to create a user with SSH and SFTP access to a single directory, which will be the root of that user’s web directory.

I added the user using

sudo useradd -d /mnt/volume_nyc1_01/html/www mcl06
sudo passwd mcl06

SSH and SFTP ok, but he can browse the top directories, I want to limit access to only that directory

mcl06:mcl06 on www

Can someone help me?

The developer cloud

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

Start building today

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