100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Linux & Shell Scripting
30 minbeginner

Users, Groups and Permissions

Linux permissions are the primary security boundary between processes running on the same system. Every file and directory has an owner (a user), a group, and a set of permission bits that control what the owner, the group, and everyone else can do. Getting permissions wrong in the wrong direction — too restrictive and the application cannot read its own configuration; too permissive and a compromised web process can overwrite its own binaries.

For DevOps engineers, permission errors are among the most common causes of deployment failures and production incidents. A misconfigured log directory causes the application to start but immediately crash when it cannot write its first log entry. A configuration file readable by all users exposes database credentials to every process on the host. An SSH key with incorrect permissions is silently ignored by the SSH daemon, causing authentication failures that produce confusing 'Permission denied (publickey)' errors.

This lesson covers the full permission model — user and group management, the nine-bit permission system, numeric and symbolic notation, the setuid/setgid/sticky bits, and the `umask` that controls default permissions for all files a process creates. Each concept is applied directly to CricketPulse deployment scenarios so the security implications are concrete rather than theoretical, and the correct configuration choices are immediately actionable.

Analogy🏏Cricket
🏏 Think of it like cricket: The match itself is the kernel — real computation at the hardware level. The commentators translating that action into words for the audience are the shell: they take raw events and present them in a form humans can understand and interact with. The television set in your living room is the terminal emulator: it displays the commentary but does not participate in the match.Just as switching from one broadcaster to another changes commentary style but not the underlying match, switching between Linux distributions changes shell defaults and package manager but not the kernel. Just as Star Sports and Sony Six both cover the same IPL match with different graphics packages, Ubuntu and Alpine both run the same kernel with different userspace tools.The insight is that these layers are genuinely separate, which is why you can swap any one of them independently.
Lesson 7 of 40
0% complete