RedHat EX200 Exam - Topic 3 Question 68 Discussion
Part 1 (on Node1 Server)Task 13 [Archiving and Transferring Files & SELinux]Create a backup file named /root/backup.tar.bz2. The backup file should contain the content of /usr/local and should be zipped with bzip2 compression format.Furthermore, ensure SELinux is in enforcing mode. If it is not, change SELinux to enforcing mode.
A) Explanation:
*
[root@node1 ~]# tar cvf /root/backup.tar /usr/local/
tar: Removing leading `/' from member names
/usr/local/
/usr/local/bin/
/usr/local/etc/
[root@node1 ~]# ls
backup.tar
[root@node1 ~]# file backup.tar
backup.tar: POSIX tar archive (GNU)
[root@node1 ~]# bzip2 backup.tar
[root@node1 ~]# ls
backup.tar.bz2
[root@node1 ~]# file backup.tar.bz2
backup.tar.bz2: bzip2 compressed data, block size = 900k
*
[root@node1 ~]# sestatus
SELinux status: enabled
[root@node1 ~]# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
[root@node1 ~]# reboot
### For Checking ###
[root@node1 ~]# sestatus
SELinux status: enabled
Barbra
8 months agoJohnetta
8 months agoAnnette
9 months agoCarmela
9 months agoLang
9 months agoChun
9 months agoDorothy
9 months agoRonnie
9 months agoBrice
9 months agoKenneth
9 months agoMartina
9 months agoRuthann
10 months agoOnita
10 months ago