Re: Trouble removing files in chrooted sftp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ah, forgot to mention that the SELinux is not enabled on this server.
So thats not causing this.

Timo


2017-01-11 22:23 GMT+02:00 Clint Dilks <clintd@xxxxxxxxxxxxxxxxxx>:

> Hi
>
> On Thu, Jan 12, 2017 at 12:07 AM, Myyrä, Timo <timo.myyra@xxxxxxxx> wrote:
>
> > I just did a bit of testing on OpenBSD and there the above setup seems to
> > work and I can remove the files just fine over sftp.
> > So this thing should work but there's still something causing it to fail
> on
> > CentOS's side.
> >
>
>
> Just as a question is SELinux enabled ?
>
> ]# getenforce
> Enforcing
>
>
> I would assume so.  As a test you could try turning this off and see if
> your problem goes away.
>
> setenforce 0
>
> If SELinux is the issue then I strongly advice that you use existing
> SELinux Booleans or create your own local policy rather than turning
> SELinux off, or leaving your system in permissive mode.
>
>
> # getsebool -a | grep chroot
>
> ssh_chroot_full_access --> off
> ssh_chroot_manage_apache_content --> off
> ssh_chroot_rw_homedirs --> off
>
> https://wiki.centos.org/HowTos/SELinux may also help.
>
> If it is SELinux related I would also look at installing setroubleshoot and
> setroubleshoot-server.
>
> I hope this helps :)
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>



-- 
Parhain terveisin,

Timo Myyrä
Palvelinylläpitäjä
Edita Prima Oy, Kehitysyksikkö
Vilhonvuorenkatu 12
PL 510
00043 NORDIC MORNING
+358 40 860 2103
timo.myyra@xxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux