Exercise: chmod
- Create a file and set the permissions to -r--r--r--
- Then set it to -rwx-------
- Create a second user.
- Create a file by your regular user and make sure the other user cannot see the content.
- Create another file that the user can read but cannot write.
- Create a Hello World shell script. Make sure both of you can run it but only you can write it.
- Create a 3rd user. Make sure only the first 2 users can execute the script.