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
10 months agoJohnetta
10 months agoAnnette
11 months agoCarmela
11 months agoLang
11 months agoChun
11 months agoDorothy
11 months agoRonnie
11 months agoBrice
11 months agoKenneth
11 months agoMartina
11 months agoRuthann
11 months agoOnita
12 months ago