How can I tell SELinux to give vsftpd write access in specific?

How can I tell SELinux to give vsftpd write access in specific?

This works very well, except that when a user tries to upload or rename a file in /home/USER/Web, SELinux forbids it because the change must also be done to /web/USER, and SELinux doesn’t give vsftpd permission to write anything to that directory.

How to give vsftpd write access in specific directories?

I also turned on the SELinux boolean ftp_home_dir so that vsftpd is allowed to write in users’ home directories.

Is there correct way to configure an FTP repository with SELinux running?

Obviously leaving setenforce to 0 is not advised but is leaving setsebool ftpd_full_access set to 1 the correct way to configure a local ftp repository? What am asking is, is there a correct way to configure an ftp repository with selinux running?

Where to put repodata files in vsftp.conf?

In my case issue was, in configuration file /etc/vsftp.conf my repodata directory was are supposed to be /var/ftp ( anon_root=/var/ftp/pub) but i had kept under /var/ftp/. It expects “repodata/repomd.xml” to be placed under “/var/ftp” according to the settings in vsftp.conf Thanks for contributing an answer to Unix & Linux Stack Exchange!

What do you need to know about SELinux FTP access?

SELinux Booleans, and vsftpd.conf settings must be in place for this to work as well.) If you have files in the /var/ftp directory structure that have the wrong file contexts (which can happen if you move files there from other directories instead of copying them), you can change or restore the file context on those files so they can be shared.

How to create a Samba server with SELinux?

If wanted to allow samba to create new home directories, we would need to turn on the samba_create_home_dirs boolean: By default SELinux policy turns off SELinux sharing of home directories (the [homes] section defines a special file share which is enabled by default).

How to set Samba to read all files?

The boolean above would allow Samba to read every file on the system. It is off by default. Similarly, if we wanted to share all files and directories read/write via Samba, we would set the samba_export_all_rw: This boolean would allow Samba to read and write every file on the system.

When did SELinux CentOS 6 migrate to new version?

If not then run `semanage fcontext -l | grep ftp` and define new rules that look like the ones for /var/ftp but using your new path. CentOS 6 died in November 2020 – migrate to a new version!