██╗ █████╗ ██████╗ █████╗ ███████╗███████╗██╗███████╗████████╗ █████╗ ███╗ ██╗████████╗ ██║ ██╔══██╗██╔══██╗ ██╔══██╗██╔════╝██╔════╝██║██╔════╝╚══██╔══╝██╔══██╗████╗ ██║╚══██╔══╝ ██║ ███████║██████╔╝ ███████║███████╗███████╗██║███████╗ ██║ ███████║██╔██╗ ██║ ██║ ██║ ██╔══██║██╔══██╗ ██╔══██║╚════██║╚════██║██║╚════██║ ██║ ██╔══██║██║╚██╗██║ ██║ ███████╗██║ ██║██████╔╝ ██║ ██║███████║███████║██║███████║ ██║ ██║ ██║██║ ╚████║ ██║ ╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝

Operating System Lab Assistant _

TekInfo 2025 | C4LL-F0R-7AL3NT

Submissions close in: 7:00:00:00
MISSION BRIEFING

Greetings, candidate. Your skills in Linux system administration and bash scripting are required.

Complete the following tasks to prove your worthiness as an OS Lab Assistant.

sudo ./initiateChallenge.sh --user=candidate --mode=assessment

[Challenge initiated]

Ready to begin the assessment? Type 'accept' to proceed:

accept_

PART 1: User Creation and Access Rights Configuration

1. User Creation:

  • Create a new user account in your Linux system with the following requirements:
    • Username must contain your name initials and the last two unique digits of your NIM (e.g., if your name is "Andi" and the last two digits of your NIM are "35", then username could be "andi35").
    • Set an appropriate full name and password for this user account.
    • Make the user account part of a specific group as instructed by the professor (e.g., staff or student group).

2. Folder Access Rights Configuration:

  • Create a new directory named shared_folder in the home directory of the user.
  • Configure access rights for the shared_folder so that it can only be accessed by the specified group, with the following conditions:
    • The group has full access (read, write, execute).
    • Users outside the group have no access to this folder.

3. Documentation Steps:

  1. Take screenshots of each step of user creation, group settings, and folder access rights configuration.
  2. Document each command used, including a brief explanation of its function.

PART 2: Creating Bash Script for Data Search Using awk and grep

1. Bash Script Task:

Create a Bash script that functions to search and display specific data from text files in the system.

  1. Active User Names: The script displays a list of users who are currently logged into the system.
  2. Log File Processing: The script searches for specific entries (e.g., errors) in system log files using grep and awk.
  3. Text Pattern Search: The script can accept input in the form of text patterns (specific strings) and search for matching lines in the selected text file.

2. Script Criteria:

  • The script must have input options from the user (e.g., file name or pattern to search for).
  • Display search results in full with a neat format.
  • Include comments in the script to explain each main function or command.

3. Documentation and Screenshots:

  • Include screenshots of each step of script execution, from user input to displayed results.
  • Explain the working logic of the script and the commands used (grep and awk) as well as the reason for choosing these commands.
SUBMISSION PORTAL

Complete both tasks and submit your work through this secure portal.

Your work will be assessed based on functionality, security implementation, and documentation quality.

./secure_submission.sh --encrypt --destination=os_lab_2025

[SUCCESS] Submission received. Your application has been encrypted and saved to "os_lab_registrations.txt" on the server.