According the following requirements to create a local directory /common/admin.
This directory has admin group.
This directory has read, write and execute permissions for all admin group members.
Other groups and users don’t have any permissions.
All the documents or directories created in the/common/admin are automatically inherit the admin group.
Solution:
mkdir -p /common/admin
chgrp admin /common/admin
chmod 2770 /common/admin
Does this meet the goal?
Correct Answer:A
Configure a task: plan to run echo hello command at 14:23 every day.
Solution:
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)
Does this meet the goal?
Correct Answer:A
The user authentication has been provided by ldap domain in 192.168.0.254. According the following requirements to get ldapuser.
-LdapuserX must be able to login your system, X is your hostname number. But the ldapuser's home directory cannot be mounted, until you realize automatically mount by autofs server.
- All ldap user's password is "password".
Solution:
system-config-authentication &
Does this meet the goal?
Correct Answer:A
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
Solution:
# useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat
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
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data.
Solution:
# pvcreate /dev/sda7 /dev/sda8
# vgcreate -s 16M vg1 /dev/sda7 /dev/sda8
# lvcreate -l 50 -n lvm02
# mkfs.ext4 /dev/vg1/lvm02
# blkid /dev/vg1/lv1
# vim /etc/fstab
# mkdir -p /mnt/data
UUID=xxxxxxxx /mnt/data ext4 defaults 0 0
# vim /etc/fstab
# mount -a
# mount
(Verify)
Does this meet the goal?
Correct Answer:A