New answers tagged selinux
First question: Yes. Although you could have used the -G option to add the supplementary group Webdev at account creation time: -G Webdev. SELinux marks users' home directories as user_home_dir_t. Therefore to set the SELinux context you can use: # chcon -t user_home_dir_t /websites Note that if you had another user's home directory as reference, you ...
The problem is the wrong context (postgresql_exec_t). The solution: semanage fcontext -a -t bin_t "usr/pgsql-9.5/bin(/.*)?" restorecon -vR /usr/pgsql-9.5/bin Note the new context bin_t. I thought reading this that `postgresql_exec_t was the correct context.
Yes. If you modified the context to something different than is in the installed policy, it will set the context according to the policy.
Top 50 recent answers are included