I have a VPS running Debian OS and would like to create user accounts on it.
I want it so that when the user logs in with FTP, everything in var appears to be their home directory and they cannot cd out of it.
For example, when user3 logs in, they have access to everything in var (read, write, execute) but cannot view (cd) user1 or user2's personal stuff.
How would I go about doing this?
I think I have to do this in chroot, but I have no idea how this would work.