Linux Basics

37 / 87
Permissions: Assignment - Owner can change, others can only read

Create a new file called myemptyfile. You can use:

touch myemptyfile

Check its permissions using:

ls -l myemptyfile

Using chmod, give it permissions such that owner of a file should be able to modify. Everyone else should be able to only read.

Hint: You can use the following command to remove the write permissions from group and others:

chmod o-w,g-w myemptyfile