Score:0

SFTP read-only access to another directory

de flag
Tqq

My Goal:

I have sftp user sftp1 which has chrootdir to /sftp/sftp1. I want to add read-only access via sftp to user sftp1 on directory which is /home/user2/some/path/to/directory

Expected result:

User sftp1 connect using sftp client and sees both directories /sftp/sftp1 and /home/user2/some/path/to/directory (and of corse can download files from those directories)

User2 must be able to do everything - read, wirte, delete in his /home/user2

Question:

How can I make user sftp1 read both directories and still allow User2 to keep their access untouched?

David avatar
cn flag
Please ask a clear precise question.
Tqq avatar
de flag
Tqq
Im pretty new to ubuntu (and linux) I have no idea what could not be clear here...
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.