make script executable only for the owner

Making files executable for the world opens a potential security risk.  It might be unlikely that it can be exploited, but it's a better practice to avoid doing anyway.
This commit is contained in:
Brandon Zylstra 2015-11-14 23:11:43 -05:00
parent 1c027df560
commit abffb251ac

View File

@ -27,7 +27,7 @@ directory. That's how plugins are run.
Create a plugin run file in plugin directory:
$ touch my_plugin.tmux
$ chmod +x my_plugin.tmux
$ chmod u+x my_plugin.tmux
You can have more than one `*.tmux` file, and all will get executed. However, usually
you'll need just one.
@ -69,7 +69,7 @@ Now that we have the binding, let's create a script that's invoked with
$ mkdir scripts
$ touch scripts/tmux_list_plugins.sh
$ chmod +x scripts/tmux_list_plugins.sh
$ chmod u+x scripts/tmux_list_plugins.sh
And here's the script content: