List, set, and Change standard permissions Flashcards

1
Q

What are the symbolic characters for permissions

A
a - all
u - user
g - group
o - other
r - read
w - write
x - execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the octal bits for permissions

A

1 - execute
2 - write
4 - read

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

How do you add a user to a group

A

usermod -G groupname username

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

What happens if a user is added to a group while logged in

A

user must log out and log back in to have proper group permissions

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

What permissions does a user need to enter a directory

A

execute

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

Can a user perform an ls on inside a directory if they only have x permissions

A

No you need x and r to enter a directory and perform an ls

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

How do you change user and group ownership

A

chown username:groupname add -R for resursive

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

How do you change group

A

chgrp

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

Whats does setuid and setgid do

A

Allows a user to execute a file with the perfmissions of the owner or owning group instead of their own permissions.

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

What is does umask do

A

sets default permissions for new directories and files

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

What permissions do umask do on files

A

umask doesnt so x on files only rw

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

How do umask permissions work

A

umask permissions are masked permissions meaning any permissions in umask are removed from newly created files and directories.

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

How do you change umask permissions

A

umask 0022 changes are not peresistent

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

how do you persistenly set umask permissions

A

modify /etc/bashrc and /etc/profile

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

Which permissions in mask apply to non priv priv users

A

Top line is for non-priv users, bottom line is for priv users

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

what is the default umask permission

A

0022

17
Q

How do you change permissions to include execute recursively for all directories but not files

A

Capitol X

chmod -R +X dirname

18
Q

What is the sticky bit and how do you set it

A

Sticky bit means files cannot be moved or deleted except by the owner set with _chmod +t

19
Q

How do you set setuid

A

chmod +s