UPTO 50% OFF on All Courses | Offer Ends at Midnight | Use Coupon Code - FLAT50 During Checkout |

 Enroll Now

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