I have a question about creating a user with sort of jailed shell access (actually all is required of this user is an
sftp access to one particular directory).
Scenario is as follows - I have an existing code which is IonCube protected so I cant really mess with it - I am stuck with output folders it provides. What it does it creates some folders with some files to download during it's operation. All that ends up in
Now, I would like to create a user who will have an sftp access to
/var/www/xy/backup/files/ and its underlings but preferably nowhere else.
Do I create a regular user and then jail him to that directory (although I am not sure if I can create jail there because I cant change
/var/www/xy/backup/orderbackup/ ownership to root cause it will stop saving files), or perhaps should I use some other technique.
I read posts about RSSH, MySecureShell etc. which approach would be middle ground between being secure and complicated to set-up (I am not a linux guru).
Thanks in advance!