CORRECT TEXT
The firewall must be open.
Solution:
/etc/init.d/iptables start
iptables -F
iptables -X
iptables -Z
/etc/init.d/iptables save
chkconfig iptables on
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Create a 512M partition, make it as ext4 file system, mounted automatically under
/mnt/data and which take effect automatically at boot-start.
Solution:
# fdisk /dev/vda
n
+512M
w
# partprobe /dev/vda
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Configure the NTP service in your system.
Solution:
system-config-date &
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be the admin group.
Solution:
# cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/
Does this meet the goal?
Correct Answer:
A
CORRECT TEXT
Create a user named alex, and the user id should be 1234, and the password should be alex111.
Solution:
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex
Does this meet the goal?
Correct Answer:
A