Linux Basics

53 / 107

Permissions: Assignment - Owner can change, others can only read

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

    cd ~
    touch myemptyfile
    
  2. Check its permissions using:

    ls -l myemptyfile
    
INSTRUCTIONS
  • Go to your home directory using cd ~
  • If the file myemptyfile doesn't exist, create it using touch myemptyfile
  • Using chmod, give it permissions such that only the Owner of a file should be able to modify. Everyone else (Group and Others) should be able to only read.
  • ls -l myemptyfile should print something like this:

-rw-r--r-- 1 user123 user123 0 Oct 24 07:40 myemptyfile



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

Loading comments...