epiccurious / jade-diy

Securely custody your bitcoin with Open Source software and generic hardware.
MIT No Attribution
17 stars 2 forks source link

Use chmod and restore original permissions in trap to improve security #51

Closed epiccurious closed 9 months ago

epiccurious commented 10 months ago

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.