Skip to content
ohsudo

Tags

#permissions

./deploy.sh: Permission denied
Linux

"Permission denied" when running a script: 5 causes and fixes

Fix "bash: ./script.sh: Permission denied" and "bad interpreter" on Linux: execute bits, noexec mounts, directory permissions, Windows line endings and shebangs.

Beginner · 4 min read

permission denied for table
Databases

PostgreSQL "permission denied for table": causes and fixes

Fix "ERROR: permission denied for table" in PostgreSQL: check what a role can do, grant the right privileges, and fix the schema, sequence and future-table cases.

Intermediate · 4 min read

Permission denied (publickey)
Linux

SSH "Permission denied (publickey)": how to find the real cause

Fix SSH "Permission denied (publickey)": read the server log, fix ~/.ssh permissions, check the key and sshd_config, and handle SELinux on RHEL.

Intermediate · 3 min read