Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Posts
    308

    A question about FTP

    I've been trying to set up ftp accounts all day now, my problem is when I make the user I enter this for there directory -d /downloads
    but they are still able to go above /downloads and see everything else such as /root /bin etc etc. How do I fix it so they cannon see the important files and only the downloads directory.?

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    any control panels ?
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  3. #3
    Join Date
    Jun 2009
    Posts
    308
    No, everything by root. I don't really want to install a program as it's mainly just a small vps.

    Here is the line I use when making a user,

    useradd -d /downloads -r daryl -g userftp -s /bin/false

    But like I said I can still get out of the /downloads directory and go above Can't delete anything however but it's still not what I want to do.
    Last edited by Bluz; 03-02-2011 at 06:16 AM.

  4. #4
    Join Date
    Jun 2009
    Posts
    308
    Also I'm using pro-ftpd.

  5. #5
    Join Date
    Mar 2009
    Location
    Austin, TX
    Posts
    934
    It's been a while since I used ProFTPd.

    Try following option in your config file:
    DefaultRoot ~
    Don't forget to restart ProFTPd afterwards.
    SysAdmin.xyz
    Having severs with customer data on it without proper monitoring is like having one night stand without using protections - eventually, there will be an 'oh s**t!' moment.

  6. #6
    this link will help you set it up in the way you need it:
    http://www.proftpd.org/docs/howto/Chroot.html

Similar Threads

  1. FTP question - Please help!
    By Bluz in forum Dedicated Server
    Replies: 1
    Last Post: 02-05-2011, 12:18 AM
  2. Simultaneous FTP User Question - Cpanel/WHM/Pure-FTP, Dual Xeon 2.4, 1gRAM, Dedicated
    By ddelliquadri in forum Hosting Security and Technology
    Replies: 2
    Last Post: 12-12-2008, 09:55 PM
  3. FTP question
    By alexpop in forum Hosting Security and Technology
    Replies: 1
    Last Post: 08-29-2006, 07:28 AM
  4. FTP Question
    By Scuzzy in forum Hosting Software and Control Panels
    Replies: 6
    Last Post: 04-22-2004, 12:57 PM
  5. Ftp Question
    By Websurfer in forum Hosting Security and Technology
    Replies: 2
    Last Post: 06-02-2003, 08:37 PM

Posting Permissions

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