Chapter 14 Flashcards
Every file has an associated blank and an associated blank.
owner
group
The security model for Linux is based on blank.
Unix
The blank number associates a file with an owner, whereas the blank number associates a file with a group.
UID
GID
As blank, you can change the owner of a file or reassign the group, but only to a group that the owner is part of.
root
What file manager can you run as root to change file permissions?
nautilus or GNOME Files
The command to change the ownership of a file in the preferred text-mode manner is blank
chown
When using chown, what do you have to include to signify a change to the group
owner:group
What command allows you to change the group without changing the owner?
chgrp
What option can you use with chown or chgrp to change the ownership of all the files in the same directory tree?
-R or –recursive
What command (and option) should you use to see a file’s permissions?
ls -l
The ls -l command returns what 7 columns
1) File permissions
2) Number of Links
3) Username
4) Group Name
5) File Size
6) Time Stamp
7) Filename
The first character in the file permission’s is the blank
The file type code
Which file type code is a normal data file?
-
Which file type code is a directory
d
Which file type code is a Symbolic link
l
Which file type code is a named pipe
p
Which file type code is a socket
s
Which file type code is a block device
b
Which file type code is a character device
c
What are the three types of file permissions?
Owner Permissions
Group Permissions
World (or Other) Permissions
In the three sets of permissions, what are the three types of access
read
write
execute
In a file permission string (after the file type code), what does the dash represent?
absence of a permission
What is the code for the ability to read a file?
r
What is the code for the ability to write a file?
w
What is the code for the ability to execute a file?
x
The other way to display file permissions is a blank
octal code
In octal code, what do you add to the starting permission of 0 to indicate the owner(or group or other) has permission to write a file
add 2
In octal code, what do you add to the starting permission of 0 to indicate the owner(or group or other) has permission to read a file
add 4