- Start the
sshdservice. - Configure the
httpdservice to start at system boot. - Stop the
rsyslogservice. - Configure the
rsyslogservice so that it does not start at system boot.
- Complete these exercises on servera unless the exercise names another machine.
- Work as root.
- Inspect the current active and enabled states before changing a service.
- Use reload instead of restart when an exercise requires uninterrupted service and the unit supports reload.
- Do not mask essential boot, networking, SSH, or logging services.
- Enabled, disabled, or masked states must remain correct after reboot when the exercise requests a boot-time behavior.
- Create
/root/service-state.txtshowing active, enabled, and failed state forsshd,httpd, andrsyslogbefore any changes. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Start sshd without changing its boot-enabled state; prove the unit is active and a process is listening on its configured TCP port.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Stop httpd and prove its listener disappears, start it and retrieve a page locally, then restart it and confirm the main process ID changes.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Make an instructor-provided safe configuration change to a reload-capable service, reload without stopping it, and confirm the main process ID remains unchanged.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Enable httpd for boot, inspect the created target dependency, reboot, and prove httpd is active without a manual start.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Leave rsyslog running now but disable it for future boots; prove active state is
activewhile enabled state isdisabledbefore reboot. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Use only the instructor-designated disposable unit for masking; show that manual start fails while masked and save the exact failure message.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Unmask the disposable unit, restore the enabled state recorded before masking, start it successfully, and confirm no failed-unit state remains.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Save the complete unit definition and selected properties
User,ExecStart,Restart,After, andWantedByfor httpd in/root/httpd-unit-report.txt. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Diagnose an instructor-created failure using unit status and journal records, correct only the faulty setting, reset failed state if needed, and prove a clean start.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
systemctl status,systemctl is-active,systemctl is-enabled,systemctl show,ss -lntup, and relevant journal messages. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.