V
V
Vladimir Merkulov2014-11-06 13:53:58
linux
Vladimir Merkulov, 2014-11-06 13:53:58

Why doesn't FTP work when SeLinux is disabled?

All good health!
I'm setting up FTP on a server under CentOS 6.5 via vsftpd
Everything is set up, the user connects to their home locations, read and write.
However, there is a condition that spoils everything, according to the ftp task, users must have access not to their home directory created when creating an ftp user, but to the specified directories of Bitrix. Accordingly, when specifying the working directory, for example

/home/bitrix/www/upload

throws out an error
500 OOPS: cannot change directory:/home/bitrix/www/upload

Checked SeLinux it is disabled tightly.
vsftpd config

anonymous_enable = NO
local_enable = YES
write_enable = YES
local_umask = 022
dirmessage_enable = YES
xferlog_enable = YES
connect_from_port_20 = YES
xferlog_file / var / log / xferlog
xferlog_std_format = YES
chroot_local_user = YES
listen = YES
pam_service_name = vsftpd userlist_enable =
YES
tcp_wrappers = YES
pasv_min_port = 60000
pasv_max_port =60235

There are suspicions that the rights and the group, bitrix directories have the rights of the bitrix user and the bitrix group. If this is the whole point, then how can I give mere mortal access to such territories without changing the user and group of the Bitrix folders?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Antony Ryabov, 2014-11-06
@tonymadbrain

the user who connects must be a member of the Bitrix group

A
Acexotic, 2014-11-06
@Acexotic

or do chmod o+rwx /home/bitrix/www/upload Such a crutch will allow you not to get all users into the bitrix group

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question