Hands-on task
This task is step 4 of the course “Users, groups and permissions”
Lock down the password file
The file /etc/billing/db.env with the database password is currently readable and writable by everyone. Set its permissions to 640: the owner reads and writes, the group only reads, others get nothing.
What you'll practise:
- chmod
- octal notation
- file permissions
- secrets in files