How to fix "500 OOPS: cannot change directory:/home/someuser" error

Probably you have SELinux (Security Enhanced Linux) enabled by default in your system. There are two ways to fix this problem. The first one is to disable SELinux, and the second one is to configure SELinux properly.

Disabling SELinux

To disable SELinux open its config file in an editor, for example in "nano":

sudo nano -w ‬/etc/selinux/config
Change SELINUX=enabled to "disabled".

Configuring SELinux

To configure SELinux properly run:

sudo setsebool‎ ‏-P ftp_home_dir on

Execution of this command may take a couple of minutes, so be sure to wait for it to finish the job.






  1. washington
    2012-10-09 11:47:28
    very good, solution iqual these are very dificult find. thanks
    muito bom, soluções iguais a essas são muito dificil de achar. obrigado.

Got a comment?

captcha =

Categories

  1. System (20)
    1. FreeBSD (5)
    2. Linux (9)
  2. Email (2)
  3. DNS (2)
  4. Databases (1)
  5. WebServer (27)
 
Copyright © 2012-2015 HowToUnix - *nix Howtos and Tutorials
All Rights Reserved.