- Home
- Skills
- DevOps & Cloud
- Freebies — Linux Permission Fixer
Works with the AI Agents you already use
Freebies — Linux Permission Fixer
Diagnose Linux permission issues and generate safe, least-privilege chmod/chown commands without using 777.
Free
Freebies — Linux Permission Fixer
Example session with this skill installed
I'm getting a 'Permission denied' error when trying to use my SSH key 'id_rsa' in this folder, and my web folder 'public_html' is giving a 403 error. How do I fix this safely?
- Read your context and instructions
- Compiled the freebies
I have analyzed the permission issues for your SSH key and web directory. To resolve these while maintaining security, you should apply least-privilege permissions. I have calculated the minimal requirements: 600 for the private key to ensure only the owner can read it, and a mix of 755 (directories) and 644 (files) for your web content.
Recommended Permission Fixes
| Target | Current Issue | Recommended Command | Octal | Security Reason |
|---|---|---|---|---|
id_rsa | Too open / Rejection | chmod 600 id_rsa | 600 | SSH requires private keys to be inaccessible by group/others. |
public_html/ | 403 Forbidden | find public_html -type d -exec chmod 755 {} + | 755 | Allows web server to traverse directories. |
public_html/* | Asset loading | find public_html -type f -exec chmod 644 {} + | 644 | Allows world-read for static assets but restricts writing. |
Important Security Note: I have excluded chmod 777 as it allows any user on the system to modify or delete your files, which is a critical security risk for both SSH keys and web server roots.
Next steps
- Run
ls -l id_rsato verify the current owner before applying changes. - Execute the
chmod 600command on your SSH key and retry the connection. - Apply the
findcommands to thepublic_htmldirectory to fix the 403 Forbidden error.
Connects securely to your tools. The creator never sees your data.
About this skill
Misconfigured Linux permissions cause broken web servers, SSH rejection, and major security holes. This skill diagnoses permission errors and generates safe, least-privilege shell commands without relying on dangerous 777 defaults.
What it does
- Scenario Diagnosis identifies issues like Nginx 403 Forbidden errors or SSH key security warnings.
- Least-Privilege Calculation determines the minimum octal permissions needed for files and directories.
- Shell Command Generation produces non-destructive
chmodandchowncommands for manual review. - Security Enforcement strictly bans open 777 permissions and explains the associated risks.
How it works
- Target Analysis: Provide a description of the error or the specific file/directory path in your workspace.
- Permission Calculation: The skill identifies if the target is an SSH key, a static asset, or an executable script.
- Command Formulation: You receive a list of shell commands scoped to your local project directory.
- Security Review: Review the provided commands and the explanation of why these specific permissions were chosen.
Frameworks & tools
This skill works with Linux/Unix permission systems, focusing on chmod, chown, and umask configurations. It is designed for developers managing web servers (Nginx/Apache), SSH configurations, and Docker volume mounts.
Why this beats prompting it yourself
Generic AI prompts often suggest chmod 777 to "just make it work," creating massive security vulnerabilities. This skill enforces a hard ban on dangerous permissions and calculates exact octal values based on the specific file type and role.
Use cases
- Fix SSH private key "permissions are too open" errors.
- Resolve Nginx 403 Forbidden errors for static web assets.
- Configure safe directory structures for Docker volume mounts.
- Set correct execution bits for shell scripts and binaries.
Known limitations
Does not execute commands directly. Restricted to analyzing files within the active project workspace and cannot access system-level configuration paths outside ./.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Does not execute commands directly. Restricted to the active project workspace (./); cannot access parent directories or system-level paths.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 4 days ago
- Free with an Agensi account
- Software
- Zero global installationorelevated privileges required.
File System Read/Write (strictly scoped to current project workspace `./`).
Permissions
Target Use Cases: - Fix SSH key permissions too open error. - Set correct chmod permissions for Nginx web directory. - Diagnose file permission denied in Docker volume mount.