0

500 OOPS: cannot change directory:/home/user2

when I try to log in to my FTP share through my username and password it shows 500 OOPS: can not change directory Error, what is meant by this error how to resolve this?

ethan
asked Feb 24, 2021
1 Answer
0

If you’ve created a new user, and assigned it a home directory, you might run into the following error

message when you’re running SELinux in combination with FTP daemons (vsftpd, …):

500 OOPS: cannot change directory.

The message is thrown because SELinux is preventing the FTP daemon from reading user home directories.

You can overwrite this setting, by issuing the following command directly from the CLI.

/usr/sbin/setsebool -P ftp_home_dir=1

This will allow FTP access to a user home directory through SELinux.

Don’t replace ftp_home_dir with the home directory you’re trying to access,

View More
linuxhelp
answered Feb 24, 2021
Your Answer
||||
x
 
100:0