Click to See Complete Forum and Search --> : Help with Proftpd


winterstide
03-03-2001, 01:03 AM
Hey,

I use Proftpd 1.2.1

I would like to be able to stop users going up directories from their home directory. Ie. home is /home/user
i dont want them to be able to get into anything BUT /home/user, not /home or anything else not starting with /home/user/ how do i do this????

Cheers

manux
03-03-2001, 10:46 AM
chroot the user's directory
man chroot

element-x
03-03-2001, 11:09 AM
DefaultRoot ~


That will keep them within their own home directory, whatever you initially made it as a user.

winterstide
03-03-2001, 08:43 PM
Thanks, but im not quite clear on how to use this command.

I also, only want this to happen for that user, not all other users, so I have to do it logged in as that user or what???

If i wanted to make /home/net/pub / then what would be the actual syntax???

Thanks

CrashTestDummy
03-04-2001, 12:34 AM
It goes in the "proftpd.conf" file -- like so:

# This causes proftpd to perform a chroot into the authenticating user's directory
#immediately after login.
# Once this happens, the user is unable to "see" higher level directories.
# Because a group-expression is included, only users who are a member of
# the group 'users' and NOT a member of 'staff' will have their default
# root directory set to '~'.
DefaultRoot ~