CentOS: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
add headers
→‎SELinux: Analyze the audit log used by SELinux
Line 34: Line 34:
| style="width: 50%;" | Install SETools and SETroubleshoot
| style="width: 50%;" | Install SETools and SETroubleshoot
| style="width: 50%;" | <div class="cli">$ yum install setroubleshoot setools</div>
| style="width: 50%;" | <div class="cli">$ yum install setroubleshoot setools</div>
|-
| style="width: 50%;" | Analyze the audit log used by SELinux
| style="width: 50%;" | <div class="cli">$ sealert -a /var/log/audit/audit.log</div>
|}
|}

Revision as of 22:53, 2 April 2018

RHEL 7 Documentation

NTP

Description Command
Install byobu
$ yum -y install epel-release
$ yum -y install byobu
Enable byobu
$ byobu-enable
Enable NTP
$ yum install -y ntp
$ systemctl enable ntpd
$ systemctl start ntpd
Synchronize with NTP server
$ systemctl stop ntpd
$ ntpdate pool.ntp.org
$ systemctl start ntpd
Check date & time and NTP status
$ timedatectl

SELinux

Description Command
Install SETools and SETroubleshoot
$ yum install setroubleshoot setools
Analyze the audit log used by SELinux
$ sealert -a /var/log/audit/audit.log