Sample Header Ad - 728x90

Making ChrootDirectory directory writable by SFTP user

6 votes
1 answer
3734 views
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.
Asked by tshepang (67482 rep)
Jan 10, 2013, 08:16 AM
Last activity: Aug 7, 2025, 08:04 AM