Solved ftp account to the site

hi,

person wants to develop my website

i want him to come to this folder only

/usr/local/www/apache24/data/www.example.com/test

i know how create user (adduser)

Code:
# adduser
Username: test
Full name: test test
Uid (Leave empty for default):
Login group [test]:
Login group is test. Invite test into other groups? []:
Login class [default]:
Shell (sh csh tcsh zsh nologin) [sh]: zsh
Home directory [/home/test]: /usr/local/www/apache24/data/www.example.com/test
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : test
Password   : ****
Full Name  : test test
Uid        : 1001
Class      :
Groups     : test
Home       : /usr/local/www/apache24/data/www.example.com/test
Shell      : /usr/local/bin/zsh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (test) to the user database.
Add another user? (yes/no): no
Goodbye!
#

but he can go anywhere in my server and and download anything he wants
i need to do all that can enter the track specific just can not pull the download or see anything outside of this path
not be able to withdraw my website in any way because it's important to me by

not be able to enter ssh or mysql or anything else just ftp The path specified for only one file

how can i do it ?
 
Back
Top