Manage File Permissions and Ownershop Flashcards
File Permissions and Ownership
User ID - unique for each user on each system
UID
File Permissions and Ownership
Group ID - unique for each group on each system
GID
File Permissions and Ownership
set in 3x3 groups for each file and directory
permissions
File Permissions and Ownership
set in 3 numbers for each file and directory
permissions
permission types
read/write/execute permissions for user, group, and everyone
[owner rwx] [group rwx][everyone rwx]
symbolic permissions
permission types
read/write/execute permissions for user, group and everyone
[owner #][group #][everyone #]
numeric permissions
permission mapping symbolic
read (view directory contents but not file attributes)
r
permission mapping symbolic
write (add, delete files - including ones you do not own if you have write priv on directory)
w
permission mapping symbolic
execute - can navigate to the directory [cd]
x
permission mapping Numeric
read - view directory contents but not file attributes
4
permission mapping Numeric
write - add and delete files including ones you do not own if you have write priv
2
permission mapping Numeric
execute - can navigate to directory [cd or changedir]
1
symbolic option type
normal file
–
symbolic option type
symlink
l
symbolic option type
block device like a disk
b
symbolic option type
character device
c
symbolic option type
directory
d
permission hierarchy
if user is owner of file
OWNER permissions apply
permission hierarchy
if user is a member of the group owner of the file
GROUP permissions apply
permission hierarchy
if else then
EVERYONE permissions apply
permission hierarchy
only ONE set of permissions apply and that is the first one that the user
qualifies for
permissions
tool used to manipulate the permissions of files or directories
chmod
chmod
would set permissions as user read/write/execute, group read/execute and other read/execute
chmod 755 myscript.sh
chmod
can use symbolic values one category at a time
u - user
g - group
a - all