Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Create a ~/bin dir that can execute files with selinux enforcing

    Posted on

    Hi guys,

    Does anyone know a semanage fcontext command I can run to make files executable in my home dir?

    I have a script have put in / and it runs just fine as my user. But I put it in my home dir and BONK.

    I created a bin dir and it has:

    drwxrwxr-x. unconfined_u:object_r:home_bin_t:s0

    but the script still won't run. :( [from inside said $USER/bin dir]

    I've read the semanage-fcontext man page over and over, and still can't quite grok how to simply get a directory that will allow a script to run in my home dir with selinux enforcing enabled.

    Thanks in advance for the help,
    Trae

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat