Adjust SELinux Policy with Booleans Flashcards

1
Q

What command do you use to adjust the configuration file to enable the Apache feature so that users can public web content from their home directory?

A

vim /etc/httpd/conf.d/userdir.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command do you use to make an Apache user home directory?

A

mkdir ~/public_html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command do you use to change the /home/student directory permissions to allow the Apache web service to access the public_html subdirectory?

A

chmod <octal> ~</octal>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used to see whether any Booleans restrict access to home directories for the httpd service?

A

getsebool -a | grep home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command is sued to enable persistent access to the home directory for the httpd service?

A

setsebool -P httpd_enable_homedirs on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly