ftp://192.168.0.254/pub/boot.isoを/ rootにダウンロードすると、/ media / cdromの下に自動的にマウントされ、ブート開始時に自動的に有効になります。
正解:
# cd /root; wget ftp://192.168.0.254/pub/boot.iso
# mkdir -p /media/cdrom
# vim /etc/fstab
/root/boot.iso /media/cdrom iso9660 defaults,loop 0 0
# mount -a
mount [-t vfstype] [-o options] device dir
質問 2:
タスクを構成します。毎日14:23にecho helloコマンドを実行するように計画します。
正解:
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)
質問 3:
アーカイブグループの所有者にファイル/ディレクトリを作成する人は、自動的にアーカイブの同じグループ所有者でなければなりません。
正解:
chmod g+s /archive
Verify using: ls -ld /archive Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.
To set the SGID bit: chmod g+s directory
To Remove the SGID bit: chmod g-s directory
質問 4:
次の要件に従って、autofsサービスを設定し、ldapドメインのユーザーのホームディレクトリに自動的にマウントします。
-Instructor.example.com(192.168.0.254)は、NFSエクスポート経由でシステムに/ home / guests / ldapuserXホームディレクトリを共有しています。Xはホスト名番号です。
-LdapuserXのホームディレクトリは、instructor.example.comに存在します:/ home / guests / ldapuserX
-LdapuserXのホームディレクトリは、システムの/ home / guests / ldapuserXに自動的にマウントできる必要があります。
-ホームディレクトリには、対応するユーザーの書き込み権限があります。
ただし、検証後にldapuser1-ldapuser99ユーザーにログオンできます。ただし、対応するldapuserユーザーのみを取得できます。システムのホスト名がserver1.example.comである場合、ldapuser1のホームディレクトリのみを取得できます。
正解:
mkdir -p /home/guests
cat /etc/auto.master:
/home/guests /etc/auto.ldap
cat /etc/auto.ldap:
ldapuser1 -rw instructor.example.com:/home/guests/ldapuser1
automatically mount all the user's home directory #* -rw instructor.example.com:/home/guests/&
質問 5:
ftp://instructor.example.com/pub/updatesからカーネルを更新します。
次の要件に従って:
*システムの再起動後、更新されたカーネルがデフォルトのカーネルとして存在する必要があります。
*元のカーネルはまだ存在し、システムで利用可能です。
正解:
rpm -ivh kernel-firm...
rpm -ivh kernel...
質問 6:
alexという名前のユーザーを作成します。ユーザーIDは1234で、パスワードはalex111である必要があります。
正解:
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex
質問 7:
1. / etcディレクトリの下にあるすべてのサイズの10kファイルまたはディレクトリを検索し、/ tmp / findfilesディレクトリにコピーします。
2. Lucyを所有者とするすべてのファイルまたはディレクトリを検索し、/ tmp / findfilesディレクトリにコピーします。
正解:
(1)find /etc -size 10k -exec cp {} /tmp/findfiles \;
(2)find / -user lucy -exec cp -a {} /tmp/findfiles \;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
Kamiya -
私は完全に初心者でした。ひたすら模擬試験をやりつつ、弱点を埋めていくという流れでやり、約1週間ほどの勉強で合格できました。素晴らしい資料でした。ご対応ありがとうございました。