If a user logs into a machine via SFTP, one can make use of ChrootDirectory
keyword to give an illusion that user is in a root directory. But that directory is only writable by root
user. I would love for this user to have such write capabilities, and it doesn't appear that OpenSSH offers this, unless I missed something?
I am aware that that SFTP user can be given write access to any file/directory inside that ChrootDirectory
, but it's not good enough. I want the user to also create/delete the files directly under that "root" directory, without the workaround of creating a subdirectory that that user has write access to.