RedHat Red Hat Certified System Administrator - RHCSA (EX200日本語版) - EX200日本語 FREE EXAM DUMPS QUESTIONS & ANSWERS
ユーザーnatashaに対して、新規ファイルのアクセス権限を400、ディレクトリのアクセス権限を500に制限するumaskを設定します。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
Quadletベースのsystemdコンテナユニットを作成し、起動時にsleepyという名前のUBI 10コンテナが自動的に起動するようにします。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
Create the Quadlet file:
mkdir -p /etc/containers/systemd
cat > /etc/containers/systemd/sleepy.container < < 'EOF'
[Container]
Image=registry.access.redhat.com/ubi10/ubi
ContainerName=sleepy
Exec=sleep 3600
[Install]
WantedBy=multi-user.target
EOF
Reload and enable:
systemctl daemon-reload
systemctl enable --now sleepy.service
systemctl status sleepy.service
Detailed Explanation:
* Quadlet is the preferred modern way to manage Podman containers with systemd for new configurations.
* The .container file is translated into a systemd-managed service.
* RHEL 10 documentation notes that podman generate systemd still exists, but Quadlets are preferred for new setups. ( Red Hat Documentation )
Explanation:
Solution:
Create the Quadlet file:
mkdir -p /etc/containers/systemd
cat > /etc/containers/systemd/sleepy.container < < 'EOF'
[Container]
Image=registry.access.redhat.com/ubi10/ubi
ContainerName=sleepy
Exec=sleep 3600
[Install]
WantedBy=multi-user.target
EOF
Reload and enable:
systemctl daemon-reload
systemctl enable --now sleepy.service
systemctl status sleepy.service
Detailed Explanation:
* Quadlet is the preferred modern way to manage Podman containers with systemd for new configurations.
* The .container file is translated into a systemd-managed service.
* RHEL 10 documentation notes that podman generate systemd still exists, but Quadlets are preferred for new setups. ( Red Hat Documentation )
ブートプロセスからルートパスワードをリセットします。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
* Reboot the system.
* Interrupt GRUB boot.
* Press e to edit the boot entry.
* On the linux line, append:
rd.break
* Boot with Ctrl+x.
* At the emergency shell:
mount -o remount,rw /sysroot
chroot /sysroot
passwd root
touch /.autorelabel
exit
exit
Detailed Explanation:
* rd.break drops you into an early emergency environment.
* /sysroot contains the real root filesystem.
* mount -o remount,rw /sysroot makes it writable.
* chroot /sysroot changes into the installed system.
* passwd root resets the password.
* touch /.autorelabel is critical so SELinux relabels files on next boot.
Explanation:
Solution:
* Reboot the system.
* Interrupt GRUB boot.
* Press e to edit the boot entry.
* On the linux line, append:
rd.break
* Boot with Ctrl+x.
* At the emergency shell:
mount -o remount,rw /sysroot
chroot /sysroot
passwd root
touch /.autorelabel
exit
exit
Detailed Explanation:
* rd.break drops you into an early emergency environment.
* /sysroot contains the real root filesystem.
* mount -o remount,rw /sysroot makes it writable.
* chroot /sysroot changes into the installed system.
* passwd root resets the password.
* touch /.autorelabel is critical so SELinux relabels files on next boot.
ファイルを探す
ユーザー「jacques」に属するすべてのファイルを検索し、それらをルートディレクトリの下にあるディレクトリ /root/findfiles に移動します。
ユーザー「jacques」に属するすべてのファイルを検索し、それらをルートディレクトリの下にあるディレクトリ /root/findfiles に移動します。
Correct Answer:
Solution:
[root@node1 ~]# mkdir /root/findfiles
[root@node1 ~]# find / -user jacques
[root@node1 ~]# find / -user jacques -exec cp -a {} /root/findfiles \;
# Verification
[root@node1 ~]# ll /root/findfiles/
[root@node1 ~]# mkdir /root/findfiles
[root@node1 ~]# find / -user jacques
[root@node1 ~]# find / -user jacques -exec cp -a {} /root/findfiles \;
# Verification
[root@node1 ~]# ll /root/findfiles/
opsという名前のグループを作成し、saraというユーザーを作成して、saraを補助グループopsに追加します。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
groupadd ops
useradd sara
usermod -aG ops sara
id sara
Detailed Explanation:
* groupadd creates the group.
* useradd creates the user.
* usermod -aG adds the user to a supplementary group without removing existing memberships.
* id sara confirms the result.
Explanation:
Solution:
groupadd ops
useradd sara
usermod -aG ops sara
id sara
Detailed Explanation:
* groupadd creates the group.
* useradd creates the user.
* usermod -aG adds the user to a supplementary group without removing existing memberships.
* id sara confirms the result.
物理エクステントサイズが16MBのボリュームグループを作成し、30個のエクステントを使用して論理ボリュームを作成します。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
pvcreate /dev/sdb3
vgcreate -s 16M VG1 /dev/sdb3
lvcreate -l 30 -n LV1 VG1
mkfs.ext4 /dev/VG1/LV1
Detailed Explanation:
* vgcreate -s 16M sets PE size to 16 MB.
* lvcreate -l 30 allocates 30 extents.
* 30 x 16 MB = 480 MB total LV size.
* mkfs.ext4 creates the filesystem.
Explanation:
Solution:
pvcreate /dev/sdb3
vgcreate -s 16M VG1 /dev/sdb3
lvcreate -l 30 -n LV1 VG1
mkfs.ext4 /dev/VG1/LV1
Detailed Explanation:
* vgcreate -s 16M sets PE size to 16 MB.
* lvcreate -l 30 allocates 30 extents.
* 30 x 16 MB = 480 MB total LV size.
* mkfs.ext4 creates the filesystem.
現在管理されているすべてのリポジトリを無効にします。
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
subscription-manager config --rhsm.manage_repos=0
Detailed Explanation:
* This disables repository management by Subscription Manager, exactly as shown in the lab dataset.
* Use this when a task wants system repositories disabled so custom repos can be managed manually.
Explanation:
Solution:
subscription-manager config --rhsm.manage_repos=0
Detailed Explanation:
* This disables repository management by Subscription Manager, exactly as shown in the lab dataset.
* Use this when a task wants system repositories disabled so custom repos can be managed manually.