Comments on: How to Configure Chroot SFTP Server in Linux https://www.linuxtechi.com/configure-chroot-sftp-in-linux/ Fri, 20 Mar 2020 03:21:04 +0000 hourly 1 By: James Jithin https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-6283 Wed, 24 Oct 2018 16:52:01 +0000 http://www.linuxtechi.com/?p=2334#comment-6283 Very well explained and written. This is very helpful.

]]>
By: andrey https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-129 Wed, 27 Jul 2016 13:07:02 +0000 http://www.linuxtechi.com/?p=2334#comment-129 This solve problem with permission denide on enabled selinux:
setsebool -P ssh_chroot_full_access on

]]>
By: Timal Mangra https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-128 Thu, 28 Jan 2016 05:07:39 +0000 http://www.linuxtechi.com/?p=2334#comment-128 In reply to boris b.

What does your personal preference of sftp over ftp have to do with the instructions provided above?

]]>
By: Timal Mangra https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-127 Thu, 28 Jan 2016 05:01:53 +0000 http://www.linuxtechi.com/?p=2334#comment-127 These instructions WILL NOT work for Ubuntu Linux and you will effectively lock yourself (admin/root) out if working remotely.

]]>
By: Benjamin Weiss https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-126 Thu, 21 May 2015 14:45:15 +0000 http://www.linuxtechi.com/?p=2334#comment-126 Okay, when I put SELinux in Permissive mode, it works. I’m running CentOS 6, and I tried your setsebool -P ssh_chroot_rw_homedirs on but it didn’t work.

Sorry for the multiple posts

]]>
By: Benjamin Weiss https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-125 Thu, 21 May 2015 14:37:17 +0000 http://www.linuxtechi.com/?p=2334#comment-125 I’ve gone through this step by step, but when I try to log in using WinSCP, I get “Error listing directory ‘/upload’ Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 11

I can go into the folder, but I can’t list anything, and when I try to upload a file I get Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3

]]>
By: Pradeep Kumar https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-124 Wed, 15 Apr 2015 03:51:55 +0000 http://www.linuxtechi.com/?p=2334#comment-124 In reply to fred gannett.

Hi Fred ,

I have used . DOT after jack in chown command because i want to make this user both File Owner and Group Owner of upload folder. I have choose upload folder because i want jack user to upload its files and directory on upload directory only.

]]>
By: fred gannett https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-123 Tue, 14 Apr 2015 12:17:14 +0000 http://www.linuxtechi.com/?p=2334#comment-123 This line needs some improvement

[root@localhost jack]# chown jack. /home/jack upload/

1) All the commands above have absolute directory paths. This command make assumption that it’s in the directory /home.
2) There is a . DOT after jack ? Either a typo or means current directory. See 1.
3) Why upload/ is this just upload or /home/jack/upload ?

[root@localhost jack]# cd /home/jack ; chown jack $PWD /home/jack/upload

]]>
By: Mark Wilson https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-122 Mon, 26 Jan 2015 23:36:43 +0000 http://www.linuxtechi.com/?p=2334#comment-122 In reply to hpcolo.

I usually see this error when I don’t have ‘root’ set as the owner & group and 755 for permissions of the user’s directory (‘Jack’ in the author’s example).

]]>
By: Pradeep Kumar https://www.linuxtechi.com/configure-chroot-sftp-in-linux/#comment-121 Sat, 03 Jan 2015 13:51:16 +0000 http://www.linuxtechi.com/?p=2334#comment-121 In reply to hpcolo.

Hi ,

These steps are tested on CentOS 6.X and RHEL 6.X , i am not sure whether these steps will work on Ubuntu Linux.

]]>