Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Freebies — Linux Permission Fixer

    1

    Diagnose Linux permission issues and generate safe, least-privilege chmod/chown commands without using 777.

    Free

    Security scanned
    Freebies — Linux Permission Fixer

    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

    TargetCurrent IssueRecommended CommandOctalSecurity Reason
    id_rsaToo open / Rejectionchmod 600 id_rsa600SSH requires private keys to be inaccessible by group/others.
    public_html/403 Forbiddenfind public_html -type d -exec chmod 755 {} +755Allows web server to traverse directories.
    public_html/*Asset loadingfind public_html -type f -exec chmod 644 {} +644Allows 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

    1. Run ls -l id_rsa to verify the current owner before applying changes.
    2. Execute the chmod 600 command on your SSH key and retry the connection.
    3. Apply the find commands to the public_html directory 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 chmod and chown commands for manual review.
    • Security Enforcement strictly bans open 777 permissions and explains the associated risks.

    How it works

    1. Target Analysis: Provide a description of the error or the specific file/directory path in your workspace.
    2. Permission Calculation: The skill identifies if the target is an SSH key, a static asset, or an executable script.
    3. Command Formulation: You receive a list of shell commands scoped to your local project directory.
    4. 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 ./.

    Does not execute commands directly. Restricted to the active project workspace (./); cannot access parent directories or system-level paths.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    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 forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    • Free with an Agensi account

    Requires

    File System Read/Write (strictly scoped to current project workspace `./`).
    Zero global installation or elevated privileges required.

    Permissions

    Read Files

    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.

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill helps you avoid the common 'chmod 777' security pitfall by analyzing your specific error—such as an Nginx 403 or an SSH key rejection—and generating the exact least-privilege commands needed to fix it.

    No, the skill will never execute shell commands directly; it generates safe, scoped commands for you to review and run manually, ensuring you maintain full control over your filesystem.

    This skill is designed for any AI agent with workspace access and is compatible with standard Linux/Unix environments, including local development, Docker containers, and remote web servers.

    The tool is optimized for web server assets (Nginx/Apache), SSH configurations, Docker volume mounts, and executable scripts, calculating specific octal values for each unique file type.

    The skill is restricted to analyzing files within your active project workspace (./) and cannot access or modify system-level paths outside of that directory for security reasons.

    Your purchase includes the full logic for the Permission Fixer skill, lifetime updates to permission logic as security standards evolve, and a guide on how to integrate it into your AI agent's workflow.

    New in DevOps & Cloud