Day 6 Task: File Permissions and Access Control Lists #day6 #trainwithsubham
Create a simple file and do ls -ltr to see the details of the files
Write an article about File Permissions based on your understanding from the notes
you can see from above, by default -rw-rw-r-- is the file permission. Let's understand what is r, what is w, what is x(which is hidden above).
r=read
w=write
x=executable
Basically, who can read, write & execute = rwx . who can only read & write = rw- . who can only read = r--
There are 3 types of class. First one is for the user, second is for the group, third is for other users.
If you want to change permission of a file. Then, chmod 777(for read,write,execute(make sure you are selecting appropriate number )) filename
example : chmod 777 hello.txt