defeating vsftp error “500 OOPS: cannot change directory:/some/directory”

There’s lots of recommendations floating around the net for this, but try the following first:

Make sure that the user and group permissions for the account and the home directory match. For example, if you are logging in as:

account:x:521:500::/some/directory:/sbin/nologin

then make sure that the home directory defined for “account” is at least readable and executable by user 521 and group 500.

I posted about this previously but this time I also ran into directory permissions. Ugh.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Possibly Related:


7 Responses to “defeating vsftp error “500 OOPS: cannot change directory:/some/directory””

  1. Jaime M. Says:

    Hi! that error is generate for Selinux plz do the following actions:

    [root@sun02 vsftpd]# getenforce
    Enforcing
    [root@sun02 vsftpd]# getsebool -a | grep ftp
    allow_ftpd_anon_write –> off
    allow_ftpd_full_access –> off
    allow_ftpd_use_cifs –> off
    allow_ftpd_use_nfs –> off
    allow_tftp_anon_write –> off
    ftp_home_dir –> on (change that to on in ur case this option is off)
    ftpd_disable_trans –> off
    ftpd_is_daemon –> on
    httpd_enable_ftp_server –> off
    tftpd_disable_trans –> off
    [root@sun02 vsftpd]# setseboll -P ftp_home_dir on

    This is all that u want to need.

    Good Luck!

  2. Matt A Says:

    Jaime –

    That totally worked for me, thank you so much. BTW, there is a typo in your last line, it should be:

    > setsebool -P ftp_home_dir on

    - Matt

  3. defeating vsftp error “500 OOPS: cannot change directory user_home” « 0960 Says:

    [...] Original WebPage: http://blog.arithm.com/2009/06/15/defeating-vsftp-error-500-oops-cannot-change-directorysomedirecto... [...]

  4. Nico Says:

    GROSOOOOO!!!!!
    It worked

  5. Alex Says:

    Been looking for this for quite a while. Didn’t want to disable SELINUX

  6. surendra Says:

    thaks so much

  7. joe Says:

    Thanks for the useful tips.It was very helpful

Leave a Reply