Results 1 to 3 of 3

Thread: SFTP Chroot

  1. #1
    Join Date
    Jan 2012
    Beans
    4

    SFTP Chroot

    I've been trying to set up a secure ftp server so I can transfer my files to /var/www without risk of anyone hacking in and seeing the rest of the server. Basically I have it set up so user x owns /var/www and in sshd_config he is chrooted to /var/www. In theory it would work but apparently the chroot directories have to be owned by root, however, that ruins the security element since I don't want to chroot my root user. Does anyone have any suggestions about setting this up?

  2. #2
    Join Date
    Apr 2008
    Beans
    62

    Re: SFTP Chroot

    I would rather set ftp up for another directory and then use putty to copy the files to /var/www, so I can check them before I put them in place.

  3. #3
    Join Date
    Feb 2010
    Location
    California
    Beans
    244
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: SFTP Chroot

    Have a look at this, leave user root out of the match-group, and he can write anywhere.
    http://woodel.com/domore/sftp/woodel_sftp.pdf

    And or make a "/var/www/uploads" folder

Bookmarks

Posting Permissions

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