Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Posts
    70

    FTP users and restrictions

    Hello,

    I currently have 20+ users on my machine and they all have FTP access. But the problem is they can access my root folders and all folders located in the / (altho they can only read).

    The thing I installed for FTP was vsftpd

    Is there a way to restrict those users to their home directory only? ie. /home/user

    I have seen on some servers where FTP users are only allowed to surf in their home directory and when you try to change the directory it gives permission error or something.

    Any suggestions ?

    Thanks.

  2. #2
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Yes, you can restrict them to their own folder/path.

    What OS and FTP server software have you deployed?

    How those user were created?
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  3. #3
    Join Date
    Apr 2012
    Posts
    70
    Centos 5 and vsftpd

    I use a game control panel which creates those users with SSH access and FTP access. It has a option which is used for allow/deny ssh.

    chroot_local_user=YES

    userlist_deny=YES

    userlist_file=/etc/ftpusers

    Save the file and restart Vsftpd service
    This didn't help.
    Last edited by Shona2; 11-10-2012 at 03:57 PM.

  4. #4
    Add the following lines in your vsftpd configuration file:

    Code:
    chroot_local_user=YES
    chroot_list_file=/etc/vsftpd.chroot_users
    Create /etc/vsftpd.chroot_users file and the users that you want to restrict (one per line)

    Finaly restart the vsftpd service.

    Quote Originally Posted by Parishrama View Post
    Centos 5 and vsftpd

    I use a game control panel which creates those users with SSH access and FTP access. It has a option which is used for allow/deny ssh.



    This didn't help.
    ---=== RoseHosting.com Admin ===---
    Linux Server Management and Outsourced Web Hosting Support - linuxhostsupport.com
    Managed Linux VPS Hosting - rosehosting.com
    High Quality Linux virtual servers with lots of Guaranteed RAM and SSD space, Impeccable Service.

  5. #5
    Join Date
    Apr 2012
    Posts
    70
    Thanks this worked. I earlier forgot to make the file in /etc instead i made it in /etc/vsftpd

  6. #6
    Join Date
    Oct 2012
    Posts
    33
    It didn't worked for me. Users still can reach all the folders in my VPS.

  7. #7
    Quote Originally Posted by umitemree View Post
    It didn't worked for me. Users still can reach all the folders in my VPS.
    Please make sure that you restarted the service after making the changes. Also, are you using same FTP configuration in your VPS as mentioned earlier in this post?

Similar Threads

  1. Ftp-USERS on cPanel
    By Blob in forum Web Hosting
    Replies: 2
    Last Post: 08-06-2006, 01:35 PM
  2. cPanel/pureFTP: users' anon FTP going to /var/ftp instead
    By Robotech_Master in forum Hosting Security and Technology
    Replies: 3
    Last Post: 11-17-2005, 04:28 PM
  3. Several Users Ftp With Permissions
    By Doble in forum Dedicated Server
    Replies: 1
    Last Post: 09-11-2004, 12:39 PM
  4. FTP permissions/restrictions for additional FTP accounts created through CPanel
    By indianetwork in forum Hosting Security and Technology
    Replies: 1
    Last Post: 12-26-2003, 11:20 AM
  5. FTP Users
    By jasonyates in forum Hosting Security and Technology
    Replies: 6
    Last Post: 09-23-2003, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •