Permissions Flashcards

1
Q

What does your user account determine?

A

Which directory (user home dir) you are put in when you connect.

And what permissions and access you have to files and directories.

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

A file must have what permission to execute that file directly?

A

x (execute) permission

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

what are the 3 levels of ownership when it comes to file permissions?

A

user, group, and other

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

what are the 3 permission access types set on files and directories?

A

read, write, and execute

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

Access levels are determined by what permissions?

A

the rwx (read, write, execute) permissions for the owner, group, and other.

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

what permissions are displayed here?

$ ls -lah vip_lounge
drwxr-xr-x 6 acmeair vip 204B Jul 14 15:24 .

A

d: It is a directory

rwx: Its user has read, write, and execute access.
r-x: Its group has read and execute access.
r-x: Other also has read and execute access.

The user named “acmeair” has been assigned to it.
The group called “vip” has been assigned to it.

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

Permissions are assigned to what?

A

files and directories—not users and groups.

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

what command allows you to set permissions?

A

chmod

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

what command displays what groups your user is part of?

A

groups

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

When changing the permissions of a file or directory. what state must you be in?

A

you either must be logged in as that file’s owner

or the root user,

or you must use the sudo command.

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

Which user and group are assigned to the /etc folder on your computer?

lrwxr-xr-x@ 1 root wheel 11 Jan 15 2019 /etc -> private/etc

A

root user

wheel group

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

Which user and group are assigned to the $HOME folder?

drwxr-xr-x@ 69 jsmith staff 2208 May 20 17:48 .

A

jsmith user

staff group

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

$ groups
bob travelers vip

$ ls -l vip_lounge

-r-xrwx— 1 bob acmeinc 0 Jul 21 17:57 laptop

What are bob’s permissions to the laptop file?
What are the permissions for the group acmeinc?

A

The user bob has read and execute permissions.

The group acmeinc has read, write, and execute permissions.

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