Shell01 Ex01 🎯 Direct Link
Let’s dissect the prompt:
1337 Piscine Study Roadmap (C, Unix Shell, and Git) - Scribd
Note: Some systems or specific 42 environments may require id -Gn instead of groups to pass successfully. Testing Your Solution Shell01 Ex01
The Linux filesystem is a hierarchical tree, and
In a CTF context, a Shell challenge typically grants the user access to a remote server (often via SSH) with low-level privileges. The goal is usually to find a hidden file, read a protected document, or exploit a misconfiguration to gain higher privileges (escalation). Let’s dissect the prompt: 1337 Piscine Study Roadmap
: This command displays user and group information. Using the -Gn flags allows you to list all group names for a specific user.
Shell01 Ex01 is not about writing a program. It is about knowing that the program already exists ( id or groups ), and your job is to glue it to the environment. Many students overthink this, writing 10-line bash scripts with loops and conditionals. The correct solution is (excluding the variable). : This command displays user and group information
Linux hides system files by default, and understanding flags (modifiers) for commands is crucial for visibility.
Mastering is a foundational step in the 42 School Piscine , a rigorous 26-day coding bootcamp designed to weed out the uncommitted and forge the next generation of software engineers. This specific exercise, titled print_groups , tasks students with writing a shell script that retrieves and formats the group memberships of a user specified by an environment variable. Understanding the Exercise Requirements
To solve Ex01, you need to understand two Unix commands: groups and id .