1z0-105 Oracle Linux 6 Advanced System Administration

Loading demo links...

Showing 7–9 of 10 questions

Question 7

Consider the steps to enable the Pluggable Authentication Module (PAM) to use cgroup rules for a 64-bit system:

1. Install the libcgroup-pam software package.

2. Ensure that the PAM module has been installed and exists: /lib64/security/ pam_cgroup.so.

3. Edit the /ets/pam.d/su configuration file and add a line: session optional pam_cgroup.so.

4. Edit the /ets/pam.d/su configuration file and add a line: auth sufficient pam_cgroup.so.

5. Configure /etc/cgconfig.conf.

6. Configure /etc/cgrules.conf.

7. Log out all users that are affected by the cgroup settings in the /etc/cgrules.conf file.

8. Enable and start the cgred service.

9. Reboot the system.

Which option represents the steps in the correct order to enable PAM to use cgroup rules for a logged-in user?

Select an option, then click Submit answer.

  • 2, 3, 5, 6, 7, 8

  • 1, 2, 3, 5, 6, 7

  • 1, 2, 3, 5, 6, 7, 8
    1, 2, 3, 4, 5, 6, 7

  • 1, 2, 3, 4, 5, 6, 9

Question 8

You dynamically configure a system to concurrently run tasks A1 and A2 using these commands:

# mkdir /cgroup/cpu

# mount –t cgroup –o cpu cpu /cgroup/cpu

# mkdir /cgroup/cpu/A1

# mkdir /cgroup/cpu/A2

# echo 5 > /cgroup/cpu/A1/cpu.shares

# echo 5 > /cgroup/cpu/A2/cpu.shares

# mkdir /cgroup/cpuacct

# mount –t cgroup –o cpuacct cpuacct /cgroup/cpuacct

You want to generate a /etc/cgconfig.conf configuration fail that contains the current cgroup configuration on the system.

Which command would you use?

Select an option, then click Submit answer.

  • cgclassify

  • cgcreate

  • cgset

  • cgsnapshot

  • lscgroup

Question 9

Examine this command and its output:

# yum history list Loaded plugins: security

history list

Which command must you use to undo the last two yum transactions?

Select an option, then click Submit answer.

  • # yum history rollback 2

  • # yum history rollback 3

  • # yum history undo last-1

  • # yum history undo last-3