unix
Given the following directory entry:
-rw-r--r-- l alex pubs 1338 Feb 10 17:01 to_do_today
1- true or false: to_do_today is a directory.
2-true or false: Members of the pubs group have permission to read to_do_today?
3-true or false: The command to change privileges on to_do_today to rw-rw-rw- is chmod 777 to_do_today.
1. True
to_do_today is not a directory because it's permission is not started with d.
2. True
Members of the pubs group have permission to read to_do_today file because of
-rw-r--r-- l alex pubs 1338 Feb 10 17:01 to_do_today
Here the highlighted r represents the permission to read the pubs group.
3. False
Because 777 gives permission to all for read,write and execute.
7 = 4+2+1
4 for read i.e r
2 for write i.e w
1 for execute i.e x
But in your case the to_do_today file have only permission of read and write.
I have explained everything in details. Still if you have any confusion then please comment below so that I will clear your confusion.
Thank you.
Hope you like it.
Get Answers For Free
Most questions answered within 1 hours.