vim /etc/selinux/config SELINUX=enforcing :wqreboot
vim /etc/selinux/config
SELINUX=enforcing
:wq
reboot
Question 2
Configure the SSH Access as required:
Users can visit your two virtual machine systems via clients of domain group3.example.com through SSH remote
See Explanation
Correct answer: A
Explanation:
Modify file /etc/hosts.allow Add a line: sshd: 172.24.11. Modify file /etc/hosts.deny Add a line: sshd: 172.25.0. Both of them need to be configured There is a solution 2: Add a firewall firewall-cmd –zone=block --add-source=172.25.11.0/24 --permanent firewall-cmd –reload Both of them need to be configured
Create a custom command on system1 and system2 named as qstat, this custome command will execute the following commands:
/bin/ps - Ao pid,tt,user,fname,rsz
This command is valid for all users in the system
See Explanation
Correct answer: A
Explanation:
vim /etc/bashrc // restart and keep valid alias qstat=’/bin/ps -Ao pid,tt,user,fname,rsz’ :wqsource /etc/bashrc alias // check if there is a qstat qstat // execute
vim /etc/bashrc // restart and keep valid
alias qstat=’/bin/ps -Ao pid,tt,user,fname,rsz’
:wq
source /etc/bashrc
alias // check if there is a qstat qstat // execute