Problem
1. Define the principle of least privilege.
2. Identify several issues associated with the correct creation and use of a lock file.
3. Identify several issues associated with the correct creation and use of a temporary file in a shared directory.