E&ICT IIT Roorkee - Data Engineering Course at Rs. 2,999 (90% OFF) | Expires in

 Enroll Now

Linux Basics

36 / 86

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