file mode
The set of permission bits stored with each file that says what the owner, the group and everyone else may do with it.
In more detail
It has three classes (owner, group, other) of three bits each (read, write, execute), plus three special bits: setuid, setgid and sticky. ls -l shows it symbolically, such as -rw-r-----, and chmod accepts it in octal, such as 640. What each bit means depends on whether the object is a file or a directory.
Related terms
- permission class — One of the three audiences a file mode gives separate permissions to: the owner (u), the owning group (g) and everyone else (o).
- read, write and execute permissions — The three basic permissions in a file mode: read (r, 4) to view, write (w, 2) to change and execute (x, 1) to run.
- octal mode — Writing a file mode as base-8 digits, one per class, where each digit is the sum of read 4, write 2 and execute 1.
- symbolic mode — A chmod permission change written as who, operator and rights, such as u+x or go-w.
- chmod — A command that changes a file's permission bits, using either octal digits or symbolic changes.
Taught in
- Reading And Setting A File Mode — Linux Fundamentals & Systems Administration
- Directories, Umask And The Sticky Bit — Linux Fundamentals & Systems Administration
- Setuid, Setgid, And Root Through sudo — Linux Fundamentals & Systems Administration