MugUp logoMugUp
HomeBrowseAboutBlog
LoginSign Up
MugUp

Plan your day, study, read, write and track your habits in one app.

Follow MugUp

Product

  • Features
  • Compare
  • Free Tools
  • Deck Library
  • MugUp for Discord

Community

  • Blog
  • Changelog
  • Feature Requests
  • Deck Requests

Company

  • Home
  • About
  • Contact

© 2026 MugUp. All rights reserved.

Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Linux and the Command Line for Engineers
  3. Users, Groups and File Permissions
Public deck

Linux and the Command Line for Engineers

The Linux that cloud, DevOps and security engineers use every day on a modern systemd and bash system: files and permissions, processes and services, shell scripts, text tools, disks and finding performance problems.

Engineering
AShared by Alex Chen
0PlaySign in to clone

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

Users, Groups and File Permissions

How Linux decides who can read, write and run a file: users and groups, rwx and octal modes, umask, ownership, the special bits and sudo.

Play topicBack to deck

Content

42 total questions

MCQ: 10
Fill-in: 8
Flashcards: 12
Pair match: 12
Users, Groups and File Permissions – Flashcards
Flashcards

Card #1

What do r, w and x mean on a directory?

Card #2

What are the octal values of r, w and x?

Card #3

What is the umask?

9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in
Users, Groups and File Permissions – MCQ
Multiple Choice Questions
  1. 1. A file owned by root with mode 644 sits in ana's home directory (drwx------ ana). Can ana delete it with rm?

    • No, because deleting a file needs write permission on that file and she only has read
    • Yes, after rm asks her to confirm, because deleting needs write access to the directory
    • No, because files owned by root can only ever be deleted by root or through sudo
    • Yes, but only if she first takes ownership of the file with chown and then deletes it
  2. 2. deploy.sh has mode 644. You run `./deploy.sh` and get "Permission denied". What would still run it without changing the mode?

    • sudo -k ./deploy.sh
    • nohup ./deploy.sh &
    • exec ./deploy.sh
    • bash deploy.sh
  3. 3. A file has mode ----rwxrwx, owner ana, group dev. Ana is a member of dev. Can she read the file?

    • No: as the owner only the owner bits apply to her, and they grant nothing
    • Yes: the group bits grant read, and Linux uses the most generous class that fits
    • Yes: the others bits apply to every user, and they grant read, write and execute
    • No: a mode starting with ---- makes a file unreadable for everyone except root
7 more questions in this game

Showing 3 of 10. Sign up free to see the rest.

Sign up freeLog in
Users, Groups and File Permissions – Fill-in-the-blank
Fill in the Blank
  1. 1. `chown ___ ana:dev /srv/app` changes the owner of the directory and of everything inside it.

    Answer:-Ralso: R

    Hint: A capital letter, for recursive.

  2. 2. Run `sudo ___` to see which commands you are allowed to run with sudo on this machine.

    Answer:-lalso: l

    Hint: One letter, for list.

  3. 3. The ___ command prints the names of the groups a user belongs to.

    Answer:groups

    Hint: The command is the plural of the thing it lists.

5 more questions in this game

Showing 3 of 8. Sign up free to see the rest.

Sign up freeLog in
Users, Groups and File Permissions – Pair match
Pair Match
chmod 600↔Owner reads and writes; nobody else has access
chmod 640↔Owner reads and writes; group reads; others nothing
chmod 644↔Owner reads and writes; group and others read
9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in