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.conf

chmod 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

whoami

id

groups

getent passwd appuser

Use dedicated service accounts instead of running every application as root.

Inspect processes

ps -ef

pgrep -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.