Creating a link from "." to other directory on SCP
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The "user" on that server was copying files with normal scp to its homedir. Now I want to convert the user to copy the files using scponly. Doing the chroot environment in the server the homedir will be:
/home/user/ -> owned by root
/home/user/"chroot system files and directories" -> owned by root
/home/user/subdir -> owned by user
With this scenario, the user only have permission to copy the files to subdir, and I want to be that way. Now I don't want to tell to the user client about the server changes, this should be transparent, so the command "scp files user@server:." shouldn't change. Instead the server should be capable of redirect the incoming files to the subdir.