Right now, the script asks the user to manually run sudo chmod in the Terminal. This introduces a security risk, since the elevated permission stays after the script finishes.
To improve security, automate the process of elevating permissions, then restore the original permissions on EXIT.
Right now, the script asks the user to manually run sudo chmod in the Terminal. This introduces a security risk, since the elevated permission stays after the script finishes.
To improve security, automate the process of elevating permissions, then restore the original permissions on
EXIT
.