Linux Basics

54 / 107

Permission: Assignment - Everyone can execute

Ignore the below instructions if you have already created myemptyfile file in the previous question

  1. Create a new file called myemptyfile in your home directory. You can use:

    touch myemptyfile
    
  2. Check its permissions using:

    ls -l myemptyfile
    
INSTRUCTIONS

Using chmod, give it permissions such that the owner of the file should be able to modify. Everyone should be able to execute but no one other than the owner can modify the file. Give permission to the file such that

  • The owner of the file should be able to modify
  • Everyone (Owner, Group, Others) should be able to execute
  • None other than the owner can modify (or write to) the file


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...