Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: SFTP with OpenSSH chroot issue

  1. #11

    Re: SFTP with OpenSSH chroot issue

    n/m.

    Next post...
    Last edited by Habitual; March 14th, 2012 at 02:52 PM.


  2. #12

    Re: SFTP with OpenSSH chroot issue

    Users can NOT write to a directory they have no permission to write to regardless of any sftp software/daemon setting/config.

    ",...that user's home directory to root..."

    glgleason is correct:
    Code:
    sudo chown root.sftponly /home/whatever
    sudochmod g+rwx /home/whatever
    or
    sudo chmod 770 /home/whatever
    Terminal >
    Code:
    ls -ld /home/$user
    output please.

    On a short note, I'd quit messing with permissions if you don't understand them.


  3. #13
    Join Date
    Jan 2012
    Beans
    9

    Re: SFTP with OpenSSH chroot issue

    I got it figured out finally, just needed to change the user's home directory to /uploads. Where uploads was located at /path/to/chroot/folder/uploads.

    Interestingly enough, usermod would not let me do this as it didn't recognize a folder at the path /uploads (because it's not really there). So, I had to edit /etc/passwd directly.

    Thanks for the help guys

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •