I made a script (name of the file is update) to update and upgrade in one command. All it is is:#! /bin/bashsudo /usr/bin/apt-get updatesudo /usr/bin/apt-get upgradeI used the full paths, as well putting this in its own directory, /home/user_name/custom_scripts. I also made sure to designate this directory as root, the permissions are listed as drwxr-xr-x.  2 root root 4096 Aug 23 00:12 custom_scriptsand the executable script is:-rwx------. 1 root root 73 Aug 23 00:12 updateI edited my path to look like this /home/user_name/custom_scripts:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games yet for some reason this won't execute if I type sudo update. The weirdest thing is if I just try update, I get a permission denied exception. I'm not really sure what's wrong.
Setting up custom bash script to run only as sudo
shell script;permissions;path