I learned the hard way that the “x” permission on directories doesn’t mean “execute” but “traverse”. And setting permissions on directories get’s them inherited by newly created/added files in there, right?

So how can i remove the ability from my homedir to execute current and new files but keep the traverse permission?

  • gomp@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    You got some great answers already :)

    Let me just add that, in general, it’s expected to have executable files inside your home directory.

    For example, ~/.local/bin is intended for user executables and usually added to the $PATH, and a lot of package managers (such as cargo, go, pip,…) will install applications under ~ (Steam also does that).