Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 05-03-2012, 10:16 PM   #1
Registered: Jan 2012
Posts: 41

Rep: Reputation: Disabled
How can I restrict FTP users to specific folders on the server (CentOS 6.0)

Hi all,

I have centOS 6 installed on our VPS server.
I have successfully installed FTP and created an FTP user.
However, the FTP user can view all the files on the server.
How can I restrict the FTP user to a certain directory?
Currently, the user is sent straight to var/www/html (but this FTP user is still able to view the other files on the server)

I had have created virtual hosts on the server and this FTP user should actually go to its corresponding website's home on the server, which is:
and this user should not be able to view the other files…
How can I achieve this?

Here’s how I got to this point:
I had added the user by doing: useradd -d /var/www/vhosts/ myftpuser
And then created and added myftpuser to /etc/vsftpd/chroot_list

Old 05-03-2012, 11:44 PM   #2
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Which FTP server you're running. Probably the following link will help you,
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
restrict FTP users from accessing 1 folder only andy106 Linux - Server 3 07-02-2010 04:21 AM
ISPConfig: directory restrict FTP users not applying very fast gr33d Linux - Software 0 11-09-2009 10:44 AM
how to restrict specific users to access restricted sites in squid subhojit Linux - Security 2 11-07-2009 11:15 AM
restrict ftp user to specific ip address? xoink Linux - Newbie 3 03-26-2009 04:12 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration