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?
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).