How to keep an FTP user in his home dir?

3mors

HampCake Studios
I've just created a new account to use via FTP.
I've changed his home dir in NetInfo manager so when I log via FTP, I'm directly in the dir I want me to be in.

The problem is this:
from my home dir, I can go up with path and reach the root of my powermac.

I know that I can keep a user in his home by creating a file named ftpchroot containing FTP username and by putting this file in /private/etc/.

I tried in this way, but when i log in via FTP, the FTP client show me an error:

can't change directory

What can I do?
 
I tried to use chroot, but doesn't work.

It says:
No such file or directory
or
Permission denied

even if I use tab key to type the path, so I'm sure it's right, and I do it as root.

does chroot command change home root as I did in NetInfo manager?
I didn't understand.
 
I'm still poking around to see what I can do to chroot my FTP users because I'm hosting some sites for my friends. from what I understand the xinetd.conf located in /private/etc/ is in charge of handling anything to do with the FTP. I just say this now so I'm playing to see what I can do.

Can somone explain how, theorically, a chroot file is supposed to work? what does that process entail? What needs to be put in the file?
 
Back
Top