c. Exercises

Checking Permissions

I am logged in as nelle and this is my output of ls -la command

-rw-r--r-- 1 nelle nelle    34 Nov  3 08:40 .profile

Will I be able to write into this file?

Solution

I am logged in as adam and this is my output of ls -la command

drwxr-xr-x 1 nelle nelle    4096 Oct  3 09:41 Documents

Will adam be able to move a file into the documents directory?

Solution

Changing Permissions

What Permissions will the following command give?

chmod ugo=rwx
Solution

What is the command for setting the permissions to r w – r – – – – x Will adam be able to move a file into the documents directory?

Solution

Tricky Questions

if a directory with ” r w x r w x r w x” permissions is copied using the cp command, will the permissions be the same on the new directory ?

Solution

what is the difference between a lowercase “t” and an uppercase “T” for the sticky bit? (you may have to google this)

Solution