Linux

chmod

CautionChange permissions

chmod 755 <file>

Changes file/directory permissions.

Examples

  • chmod +x deploy.shMake executable

Syntax

chmod <mode> <file> (e.g. 644/755)

Before you run it

Wrong perms affect security/behavior.

Used when you see

Permission denied
3
Adjust permissions if neededAvoid over-permissive modes
See the whole flow →
SSH key auth fails
3
Fix server-side ~/.ssh permissions (700/600)Loose permissions make sshd silently ignore the file.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store