Linux interview question

Explain Linux file permissions, ownership and the special bits.

How it works Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Each file has an owner, a group and read/write/execute bits for owner, group and others (for example 0640). The special bits are setuid (run as the file's owner), setgid (run as the group, or new files inherit the directory's group) and the sticky bit (only the owner can delete files in a shared directory such as /tmp).

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Linux questions

← All Linux questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake