rw-r--r-- 1 user group 512 Jan 1 00:00 potion
Racks of weapons line the walls. Suits of armour stand at attention. But every sword and potion is locked behind a permission barrier β you must learn chmod before you can equip a single item.
πΉοΈ Play This Chamber¶
This page is your walkthrough and strategy guide β play right here in the browser, then follow the steps below.
{% include bashcrawl-terminal.html room="Armoury" %}
π― Quest Objectives¶
- Read
ls -loutput and interpret permission bits - Use
chmodto make scripts executable - Run
./potionto restore health - Run
./swordto equip your weapon - Defeat the armoury guardian
- Proceed to the Chamber
πΊοΈ Quest Prerequisites¶
- Cellar side-quest complete
- Comfortable with
ls -F,cat, and file navigation
β‘ Command Cheatsheet¶
| Command | What It Does |
|---|---|
ls -l |
Long listing β shows permissions, owner, size |
chmod +x file |
Add execute permission for everyone |
chmod 755 file |
rwxr-xr-x β owner can all; others can read+execute |
chmod 644 file |
rw-r--r-- β owner can read+write; others read only |
./script |
Execute a script in the current directory |
Permission String Decoder¶
- rwx r-x r-x
β β β β
β β β βββ others (o)
β β ββββββββ group (g)
β βββββββββββββ user / owner (u)
βββββββββββββββββ file type: - = regular, d = dir, l = link
Each group: r = read (4), w = write (2), x = execute (1)
Octal shorthand: 755 = rwx r-x r-x, 644 = rw- r-- r--
πΊοΈ Walkthrough¶
Step 1 β Inspect the armoury¶
ls -l
# -rw-r--r-- 1 user group 512 Jan 1 00:00 potion
# -rw-r--r-- 1 user group 1024 Jan 1 00:00 sword
# -rwxr-xr-x 1 user group 256 Jan 1 00:00 guardian
potion and sword lack the x bit β they are not yet executable. You cannot run them.
Step 2 β Try running a locked script¶
This is the expected result. Now fix it.
Step 3 β Grant execute permission¶
chmod +x potion
chmod +x sword
ls -l potion sword
# -rwxr-xr-x 1 user group 512 Jan 1 00:00 potion
# -rwxr-xr-x 1 user group 1024 Jan 1 00:00 sword
Why the
./? When you type./potion, the./tells the shell to run the script in the current directory. Without it, the shell only searches the directories in yourPATHβ and.(the current directory) is not inPATHby default, sopotionalone would fail with "command not found".
Step 4 β Drink the potion¶
Step 5 β Pick up the sword¶
Step 6 β Face the guardian¶
./guardian
# A stone golem steps forward...
# You raise your sword...
# Guardian defeated! The door creaks open.
With the sword equipped, the guardian falls and the door to the Chamber opens. List the room (ls) to find the path onward, then step through into the Chamber's directory (for example, cd ../chamber).
Low on health? Your HP carries over between rooms. If a fight leaves you weakened, re-run
./potion(if a potion is still available) before moving on.
π‘ Understanding Octal Permissions¶
| Octal | Symbolic | Who Can Do What |
|---|---|---|
777 |
rwxrwxrwx |
Everyone can read, write, execute β οΈ |
755 |
rwxr-xr-x |
Owner: all; others: read + execute β |
644 |
rw-r--r-- |
Owner: read + write; others: read only β |
600 |
rw------- |
Owner only β private files π |
400 |
r-------- |
Read-only, even for owner |
Security note: Never use
chmod 777on scripts or sensitive files. Use755for scripts and644for data.
π‘ Common Pitfalls¶
| Problem | Cause | Fix |
|---|---|---|
Permission denied after chmod |
Not the file owner | Use ls -l to check owner |
| Script does nothing | Missing shebang line | Add #!/usr/bin/env bash as line 1 |
No such file: ./sword |
Wrong directory | pwd and ls first |
| Health still low after potion | Stale game state | Re-run the bashcrawl setup or restart the game from the entrance, then revisit the room |
β Validation¶
- You can read a permission string like
rwxr-xr--without looking it up - You understand why
./is needed to run a script - You ran both
./potionand./swordsuccessfully - The guardian is defeated and the Chamber door is open
β‘οΈ Next Steps¶
- Continue main line β Chamber
- Explore other branches β Chapel Β· Vault Β· Scrap
- Back to hub β Bashcrawl Hub
{% include bashcrawl-play-local.html %}
π External Resources¶
Continue your terminal adventure with these resources:
- Bashcrawl Web Demo β Play in your browser, no installation required
- Bashcrawl on GitHub β Source code, setup, and open contributions
- GNU Bash Manual β Official Bash reference for brave heroes
- IT-Journey Bashcrawl Hub β Full quest series and walkthroughs
- chmod Calculator β Permission wizard for every adventurer
Sword in hand, potion consumed. The Chamber awaits. βοΈ
πΈοΈ Knowledge Graph¶
Structured wiki-links connect this quest to the IT-Journey knowledge graph. Open the Obsidian Graph View to explore connections.
Level hub: [[Level 0000 - Foundation & Init World]] Overworld: [[π° Overworld - Master Quest Map]] Prerequisites: [[Bashcrawl Cellar: File Types, Aliases, and Emerald Amulet]] Unlocks: [[Bashcrawl Chamber: Bash Arithmetic and the Statue Boss]] Sequel quests: [[Bashcrawl Chamber: Bash Arithmetic and the Statue Boss]] Obsidian docs: [[Obsidian Knowledge Graph and Wiki Links]]