Create a user alex with a userid of 3400. The password for this user should be redhat.
Solution:
useradd -u 3400 alex
passwd alex
su -alex
Does this meet the goal?
Correct Answer:
A
Update the kernel from ftp://instructor.example.com/pub/updates. According the following requirements:
The updated kernel must exist as default kernel after rebooting the system.
The original kernel still exists and is available in the system.
Solution:
rpm -ivh kernel-firm…
rpm -ivh kernel...
Does this meet the goal?
Correct Answer:
A
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.
Solution:
# cat /etc/grub.conf
# cd /boot
# lftp it
# get dr/dom/kernel-xxxx.rpm
# rpm -ivh kernel-xxxx.rpm
# vim /etc/grub.conf default=0
Does this meet the goal?
Correct Answer:
A
Configure a default software repository for your system.
One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.
Solution:
Yum-config-manager
--add-repo=http://content.example.com/rhel7.0/x86-64/dvd” is to generate a file vim content.example.com_rhel7.0_x86_64_dvd.repo, Add a line gpgcheck=0
Yumcleanall
Yumrepolist
Almost 4305 packages are right, Wrong Yum Configuration will lead to some following questions cannot be worked out.
Does this meet the goal?
Correct Answer:
A
Add 3 users: harry, natasha, tom.
The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom's login shell should be non-interactive.
Solution:
# useradd -G admin harry
# useradd -G admin natasha
# useradd -s /sbin/nologin tom
# id harry;id Natasha (Show additional group)
# cat /etc/passwd
(Show the login shell)
OR
# system-config-users
Does this meet the goal?
Correct Answer:
A