← All tasks
🧮
Beginner

Write Correct File Permissions for a Secrets File

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the chmod command that restricts a file containing secrets to read/write access for the owner only.

Scenario

A .env file containing API keys is currently readable by every user on the server.

Ready to try it?

Create a free account and subscribe to take "Write Correct File Permissions for a Secrets File". Earn 90 XP and track your internship progress.

Already have an account? Sign in