I looked this up and didn’t see a clear explanation for my needs.
I have two users created on Yunohost so far.
I want to make one of them SFTP-only with chroot access to their own user directory, which I would theoretically then point their domain to that directory/subdirectory (in the case of multiple domains via A Name records and/or virtual hosts, I believe).
I can’t currently access SFTP just by assigning SFTP permissions to my own user account or the other person’s account that I am testing.
It sounds like my_webapp could be the most straightforward way to approach this via YNH’s workflow from my reading, but I am not sure–the information seems a little confusing.
Is there a way to link an existing user, i.e. a YNH user who currently has a directory now in /home/, to the my_webapp instance just created?
Or does this in effect create two users: one for accessing Yunohost, and one for logging in to SFTP?
And, would this installation of my_webapp get in the way of installing their own CMS (such as wordpress, or other web installations for that matter), for them within their chroot directory via YNH’s web admin? Or for this kind of thing, would it make more sense to go about this install via SSH instead?
I know this was linked in a previous discussion here, and this corresponds similarly to YNH’s own documentation to command line SFTP permissions: OpenSSH/Cookbook/File Transfer with SFTP - Wikibooks, open books for an open world
But from here, I don’t know what my next steps are–if I should use chroot separately from my_webapp, or with it based on my needs. And, if this is something that I need to address separately, as I can’t seem to access SFTP currently to test, despite permissions (via web admin) being applied.
I’m really enjoying using YNH so far! I want to be able to give whoever uses their website on my VPS the easiest time to access their files and applications under their domain(s), especially when they need to build their websites. Myself and the person in question are both used to CPanel, which has a different workflow than YNH. I am still relatively new to Linux in general and I have a lot to learn.
Thanks in advance for your patience and any help!
P.S.
Je sais lire un peu le français, mais ma grammaire et mon vocabulaire sont très rouillés si je réponds.