4 ms·
For the people who are curious: the answer is here. Since I granted sudoers privilege for a couple of accounts, I wanted to make sure httpd.conf would not be c
by dclara 13y ago
For the people who are curious: the answer is here.
Since I granted sudoers privilege for a couple of accounts, I wanted to make sure httpd.conf would not be changed by anybody. If there are multiple users having the root privilege, it's a best practice to have separate HTTPD instances rather than make changes directly on top of the original instance. Otherwise, it's not easy to recover from fail over.
The command to lock: #chattr +i httpd.conf
The command to unlock: #chattr -i httpd.conf