Type in the command below,
ls -Z
-rw-rw-r--. user1 user1 unconfined_u:object_r:user_home_t:s0 httpd.conf -rw-r--r--. root root system_u:object_r:httpd_config_t:s0 magic
1. Run the command below to change "unconfined_u:object_r:user_home_t:s0" to "system_u:object_r:httpd_config_t:s0".
chcon system_u:object_r:httpd_config_t:s0 httpd.conf
2. For the sake of change the ownership correctly, you can run command below to change the owner
chown root:root httpd.conf
chmod 644 httpd.conf
5 comments:
You are Champ (Y)
You are correct!!!
You are correct!
Right on the dot. Thanks many
Excellent, Perfectly working now.
Post a Comment