Access Control of Users

Hi,

RedHat Linux 7.0 and Apache Webserver are installed in my server. I use the traditional method to add user and hosting account:

1. Add a new User:
useradd myclient
passwd myclient
..........................

2. Create a Hosting Account for the Client:
cd /var/www/html
mkdir myclient
cd myclient
mkdir public_html

3. I then change the /etc/passwd so that the root directory of myclient is /var/www/html/myclient/public_html when he login by FTP client:
myclient:x:500:500:client:/var/www/html/myclient/public_html:/bin/bash

My problem is:
When myclient using FTP client to login, he can move up to the root directory and read all files and directories.
How can I limit myclient only inside his public_html directory?

Please help.

Thanks

-----------------
seekhosting

 

 

 

 

Top