RHCE # Week # 281

Question: 

You have a default Red Hat 7.x workstation. Your lilo.conf contains the following lines
boot=/dev/hda3
password=foo123
restricted
This means that:
A. password is needed to proceed beyond LILO at every bootup
B. A password is needed to drop to single user mode
C. Logins are restricted to user foo123
D. None of the above

Explanation:

The "restricted" directive forces LILO to prompt for a password whenever booting into the non-default runlevel. In RedHat 7.x, the default runlevel is 5. The single user mode is at runlevel 1.

If the "restricted" directive was absent, then a password would have been needed to proceed beyond the LILO prompt at each bootup. For this reason, option A is wrong. LILO does not include a user authentication process. For this reason, option C is wrong. Obviously option D is also wrong.

Answer: B

RHCE # Week # 280

Question: 

Which of the following commands can be used to add a new user in Linux?

A. mkuser
B. addnewusr
C. useradd
D. newuser


Explanation:


The useradd command is used on Linux and other Unix-like operating systems both to add new users, inclusive of their user names, passwords and other data, and to update default new user information.

Depending on command line options, the useradd command will update system files (/etc/passwd and /etc/shadow file with password) and also create the new user's home direcotry and copy initial files.

Create a new user named knight
useradd knight

Set password for knight
passwd knight

Without password user account will be in locked status. To unlock the account, you need to use above passwd command. Use passwd command to assign a password and set password aging guidelines.

Answer:  C

RHCE # Week # 279

Question: 

Which of the following tools can be used to manage Red Hat Virtualization environment?

A. xen
B. xm
C. chroot
D. sed


Explanation:


Virtualization enables enterprises to consolidate multiple servers without sacrificing application isolation, scale their infrastructure as their needs grow, and increase availability through dynamic provisioning and relocation of critical systems.

The xm application is a robust management tool that allows you to configure your Red Hat virtualization environment. As a prerequisite to using xm, you must ensure that the xend daemon is running on your system.

Answer:  A,B