Hands-on task
Default permissions via umask
The script /root/gen.sh creates report files in /srv/gd with touch, but they come out with permissions 644 — readable by everyone. Open the script in the Editor tab above the terminal and fix the script itself so the files it creates get exactly 640, by setting this through umask. Don't use chmod in the script.
- umask
- default permissions
- chmod
- octal permissions
- touch