Score:1

How to limit users to their home directory SFTP on Ubuntu 20.04

cn flag

Is there any way to limit users to certain home directories with sftp on Ubuntu OS 20.04 and giving them write access to their directory?'

I was able to keep each user to only see their directory and not browse any other directories. However, they can't write to their directory now. Below is the config for /etc/ssh/sshd_config

Match User XXXXXXXXX
 
ForceCommand internal-sftp 
 
PasswordAuthentication yes 
 
ChrootDirectory %h 
 
PermitTunnel no 
 
AllowAgentForwarding no 
 
AllowTcpForwarding no 
 
X11Forwarding no 

Thanks in advance for any help!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.