Manage File Permissions and Ownershop Flashcards

1
Q

File Permissions and Ownership

User ID - unique for each user on each system

A

UID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

File Permissions and Ownership

Group ID - unique for each group on each system

A

GID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

File Permissions and Ownership

set in 3x3 groups for each file and directory

A

permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

File Permissions and Ownership

set in 3 numbers for each file and directory

A

permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

permission types

read/write/execute permissions for user, group, and everyone
[owner rwx] [group rwx][everyone rwx]

A

symbolic permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

permission types

read/write/execute permissions for user, group and everyone
[owner #][group #][everyone #]

A

numeric permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

permission mapping symbolic

read (view directory contents but not file attributes)

A

r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

permission mapping symbolic

write (add, delete files - including ones you do not own if you have write priv on directory)

A

w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

permission mapping symbolic

execute - can navigate to the directory [cd]

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

permission mapping Numeric

read - view directory contents but not file attributes

A

4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

permission mapping Numeric

write - add and delete files including ones you do not own if you have write priv

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

permission mapping Numeric

execute - can navigate to directory [cd or changedir]

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

symbolic option type

normal file

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

symbolic option type

symlink

A

l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

symbolic option type

block device like a disk

A

b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

symbolic option type

character device

A

c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

symbolic option type

directory

A

d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

permission hierarchy

if user is owner of file

A

OWNER permissions apply

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

permission hierarchy

if user is a member of the group owner of the file

A

GROUP permissions apply

20
Q

permission hierarchy

if else then

A

EVERYONE permissions apply

21
Q

permission hierarchy

only ONE set of permissions apply and that is the first one that the user

A

qualifies for

22
Q

permissions

tool used to manipulate the permissions of files or directories

A

chmod

23
Q

chmod

would set permissions as user read/write/execute, group read/execute and other read/execute

A

chmod 755 myscript.sh

24
Q

chmod

can use symbolic values one category at a time

A

u - user
g - group
a - all

25
Q

chmod

used to add or remove permission values

A

+/-

26
Q

chmod

can set multiple categories of permissions

A

user/group/all by inserting a comma between each

27
Q

chmod

recursive allows you to apply permissions to an entire directory structure including all other files and directories in it

A

chmod -R

28
Q

chmod

report which files changed

A

chmod -c

29
Q

chmod

show all files

A

chmod -v

30
Q

chmod

change only symbolic links and not the original

A

chmod -h

31
Q

chmod

ignore/don’t display error messages

A

chmod -f

32
Q

special permissions

solves problem of each file/directory only being able to belong to a single group at any one time and is useful in collaborative configs where you have users in different groups but some users are members of more than one group

A

special permissions

33
Q

special permissions

first group you are a member of

A

Primary group

34
Q

special permissions

your user account appears in /etc/group

A

Secondary group

35
Q

special permissions

set user ID

A

SUID

36
Q

special permissions

permit a user to access/run a program as if they were the

A

OWNER

37
Q

special permissions

value of SUID permissions

A

4

38
Q

special permissions

symbolic notation

A

u+s

39
Q

special permissions

set Group ID

A

SGID

40
Q

special permissions

SGID provides group ownership of any NEW file created in a directory to the group owner of the directory

A

when applied to a file, permissions to access run programs as if group owner

g+s - symbolic notation

41
Q

special permissions

Used to keep users that do not own a file from deleting files in a directory they otherwise
have group/all write permissions in (changes the ‘write’ permission for a directory - delete
file can only be done by the owner of the file, the owner of the directory or the root user,
even if the user would normally have full write permissions to the directory the files are in)

A

sticky bit

42
Q

special permissions

system wide setting applied to all users unless specified in local user .bashrc

A

umask

/etc/bashrc

43
Q

special permissions

set here for indicated user overriding the system setting

A

~/.bashrc

44
Q

Default (no unmask) permissions

files - rw-rw-rw

A

666

45
Q

Default (no unmask) permissions

directories - rwxrwxrwx

A

777

46
Q

special permissions

executing this command will provide current default value for user

A

umask

example - umask (may display - 0022)
* for this user, this means
* 0 - special permissions are masked - NOTE: will always be 0 (removed)
* 0 - user permissions are masked (removed)
* 2 - group permissions are masked (removed)
* 2 - other permissions are masked (removed)