Read the scenario first
Each lab starts with a situation, the way a ticket or an exam question does. Work out what is being asked before you type anything.
Free tool · No sign-up needed
Fix a web app’s files with chmod and chown: lock down a config file, make a script executable and hand the folder to the right owner.
Last updated
Linux command line · Beginner · About 10 minutes
You’ve joined the operations team that looks after a small web app on the server web01. Last night’s deployment left the app folder in a bad state: the configuration file that holds the database password can be read and changed by every user on the machine, the deploy script can’t be run, and everything belongs to root instead of the web server’s own account.
Put it right from the command line. The app lives in /srv/app.
A practice Ubuntu terminal that runs in your browser. It understands real commands, and nothing you type can break anything.
List the files in /srv/app with their permissions and owners. (not done yet)
Give /srv/app and everything in it to the web server: owner www-data, group www-data. (not done yet)
Set config.env so its owner can read and write it, its group can read it, and nobody else can open it (mode 640). (not done yet)
Make deploy.sh runnable by its owner and group, with no access for others (mode 750). (not done yet)
The logs folder is open to every user. Close it to everyone but its owner and group (mode 770). (not done yet)
Take it further in OpenpassAI
OpenpassAI’s Hands-on Labs put you in a Linux or Windows terminal for the certification you’re studying, in guided, hint-only and timed modes.
About this lab
Free performance-based questions: Linux+, A+ Core 2, Server+
One way to complete the lab, with the reason for each step. Try it yourself first.
ls -l /srv/appsudo chown -R www-data:www-data /srv/appsudo chmod 640 /srv/app/config.envsudo chmod 750 /srv/app/deploy.shsudo chmod 770 /srv/app/logsGuide
Each lab starts with a situation, the way a ticket or an exam question does. Work out what is being asked before you type anything.
Typing a command, getting it wrong and fixing it is what makes it stick. Use the hints when you’re stuck, not before.
Every lab has a worked solution with the reason for each step. Read it even when you finished: there is often a shorter way.
Reset the lab a day later and do it without hints. If you can, you know it. If you can’t, you’ve found what to study.
14 free labs in your browser: Linux and Windows command line, firewall rules and SOHO router setup, checked as you go.
Open the toolFree performance-based questions for 19 CompTIA exams: firewall rules, network diagrams, command-line tasks and drag-and-drop.
Open the toolFree practice tests for 261 popular certification exams, with explanations and a score by exam domain.
Open the toolFAQs
Find quick answers or contact our support team.
No. It’s a practice terminal that runs in your browser. It understands the real commands the lab needs, and many more, and it answers the way an Ubuntu server would. It isn’t a full operating system: nothing is installed, and nothing you type can break anything.
The everyday ones: ls, cd, cat, grep, awk, sed, sort, uniq, find, chmod, chown, useradd, usermod, passwd, systemctl, journalctl, ip, ping, dig, ss and ufw, with pipes, redirects and sudo. Type help in the terminal for the full list. Text editors and package installs aren’t included.
It practices skills from CompTIA Linux+ (Security), CompTIA A+ Core 2 (Operating Systems) and CompTIA Server+ (Security and Disaster Recovery).
No. The labs run in your browser and nothing is saved. Sign up only if you want OpenpassAI’s full labs and progress tracking.
OpenpassAI
Hi 👋 I’m OpenpassAI. Ready to prepare for your exam the smarter way?
Ready to explore OpenpassAI? I can show you how the platform helps you prepare, practice, and pass.