Week 2 - Permissions
You're given the output of an ls -l of a file in Linux. ls -l books_file dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file Answer the following question: Who does the last trio of bits (r--) in the file permission and attributes refer to? Regular file File owner All other users Group file belongs to
All other users
You're given the output of an ls -l of a file in Linux. ls -l books_file dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file Answer the following question: What permissions does the second trio of bits (-wx) give you? Check all that apply. Execute Read Group file belongs to Write
Execute Write
What are the basic linux file permissions? Check all that apply. Read Write Modify Execute
Read Write Execute
You're given the output of an ls -l of a file in Linux. ls -l books_file dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file Answer the following question: What does the first character of output signify? books_file is a disk device The file owner has delete permissions books_file is a directory The file owner is a class D user
books_file is a directory
If I wanted to change permissions of a file called honey_bears, what command could I use to grant write access to the owner of the file without changing other permissions? The owner currently only has read access to the file. Check all that apply. chmod u+w honey_bears chmod o+w honey_bears chmod 644 honey_bears chmod 400 honey_bears
chmod u+w honey_bears