Linux File Permissions, Users and Processes Explained
Understand rwx permissions, ownership, process inspection and safe service management.
Read permission notation
ls -l shows permissions for owner, group and others. r is read, w is write and x is execute. For directories, execute permission allows traversal.
Use chmod carefully
chmod 640 app.confchmod 750 deploy.sh
640 means owner read/write, group read, others no access. 750 means owner full access, group read/execute, others no access.
Users and groups
whoamiid
groups
getent passwd appuser
Use dedicated service accounts instead of running every application as root.
Inspect processes
ps -efpgrep -a nginx
systemctl status nginx
sudo systemctl reload nginx
Reload only when supported and after validating configuration.
Operational habits
Check logs, confirm listening ports, back up configuration before editing and document changes. Avoid recursive ownership changes without understanding their impact.
Try the concepts in a small project and verify version-specific details with official documentation.
More Linux resources