module 2 day 3: windows file permissions through windows special permissions Flashcards

1
Q

who do we want to give access to certain files and directories?

A

those who need it

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

How are files and directory permissions assigned in Windows?

A

using Access Control Lists, or ACLs

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

What will we work with in this course for files and directory permissions?

A

Discretionary Access Control Lists, or DACLs

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

What can windows files and folders also have for permissions?

A

System Access Control Lists, or SACLs, assigned to them

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

What are used to tell Windows that it should use an event log to make a note of every time someone accesses a file or folder?

A

SACLs

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

What is a note about who can use a file and what they’re allowed to do with it?

A

DACL

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

What has an owner and one or more DACL?

A

Each file or folder on a Windows machin

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

how can you see the properties dialogue for your Home Directory in Windows?

A

Go in file explorer, home directory, right click desktop, select properties

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

how do you see the permissions window in the properties dialogue for a directory?

A

go to the securities tab, and that tab is the permissions window.

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

what is in the top box in the permissions window for a directory?

A

Group or user names

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

what is in the bottoms box in the permissions window for a directory?

A

Permissions for SYSTEM, a list of permissions that each user group has been assigned

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

What permission lets you see that a file exists and lets you read its contents and also lets you read the files and directories in a directory?

A

Read

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

What permission lets you read files, and if the file is executable, you can run the file? Includes Read, so if you select it, Read will be automatically selected

A

Read and Execute

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

what permission is an alias for Read and Execute on a directory? so checking one will check the other? You can read and execute files in that directory

A

List folder contents

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

what permission lets you make changes to a file? you can have this access without having read permission. Lets you create subdirectories and write to files in the directory

A

Write

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

what permission is an umbrella permission that includes read, execute, and write?

A

Modify

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

what permission gives a user or group access to do anything they want to the file? All the permissions of modify, and the ability to take ownership of a file and change its ACLs.

A

Full Control

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

how can you see the permissions for the user?

A

click on the user’s name in the permissions page for the file or directory, and it will show in the Permissions list below.

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

how can you see which ACLs are assigned to a file? what utility designed to view and change ACLs?

A

use icacls, improved change ACLs. PowerShell.

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

how would you look at the desktop with icacls?

A

icacls ~\Desktop

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

what does the output for icacls ~\Desktop show us?

A

you can see the user accounts with access to your Desktop, and you can see if your account is one of them.

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

In PowerShell, in icacls, what do the capital letters in parentheses represent?

A

the ones in front of the user represent the file permissions the user has.

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

what is the help parameter for icacls?

A

icacls /? It’s a DOS command

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

in icacls, what does F mean?

A

full access

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

what is full access the same as?

A

full control

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

what permissions can be inherited?

A

ntfs

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

what does OI mean in icacls?

A

object inherit

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

what does CI mean in icacls?

A

container inherit

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

what does it mean if I have object and container inherit permissions, with full access?

A

if I create objects, files, or containers, directories, inside that directory, they inherit that DACL, and I retain full access permissions with them. objects and containers.

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

what is a list of access control entries, or ACE?

A

ACL

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

What identifies a trustee and specifies the access rights allowed, denied, or audited for that trustee?

A

Each ACE in an ACL

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

What can contain two types of ACL: a DACL and a SACL?

A

the security descriptor for a securable object

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

What does DACL stand for?

A

discretionary access control list

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

What identifies the trustees that are allowed or denied access to a securable object?

A

DACL

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

When does the system check the ACEs in the object’s DACL to determine whether to grant access to it?

A

when a process tries to access a securable object

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

what does the system do if the object doesn’t have a DACL?

A

grants full access to everyone

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

what happens if the object’s DACL has no ACE?

A

the system denies all attempts to access the object because the DACL doesn’t allow any access rights

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

What does the system do until it finds one or more ACE that alllow all the requested access rights or until any of the requested access rights are denied?

A

checks the ACE’s in sequence

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

what allows admins to log attempts to access a secured object?

A

sacls

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

what specifies the types of access attempts by a specified trustee that cause the system to generate a record in the security event log?

A

each ACE

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

what can generate audit records when an access attempt fails, when it succeeds, or both?

A

an ACE in a SACL

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

What should i use to make sure that ACLs are semantically correct?

A

use the appropriate functions to create and manipulate ACLs. Don’t work directly with them.

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

what provide access control to Microsoft Active Directory service objects?

A

ACLs

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

What include routines to create and modify the contents of ACLs?

A

Active Directory Service Interfaces, ADSI

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

How many different permissions can you have in Linux?

A

three

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

in Linux, what permission lets someone read the contents of a file or folder?

A

Read

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

in linux, what permission allows someone to write information to a file or folder?

A

write

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

in linux, what permission allows someone to execute a program?

A

Execute

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

what flag with the ls command in linux lets us see the permissions on a file?

A

ls -l

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

when looking at a file’s long ls, what is the first thing we see in the first column? linux.

A

10 bits. the first is the file type, the next 9 bits are our actual permissions, grouped in trios or sets of three.

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

what does a - mean for the file type? linux

A

regular file, in this example

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

what does a d stand for as file type?

A

directory

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

in linux, in the 9 bits that tell us our actual permissions, what does the first trio refer to?

A

the permission of the owner of the file

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

in linux, in the 9 bits that tell us our actual permissions, what does the second trio refer to?

A

the permission of the group this file belongs to

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

in linux, in the 9 bits that tell us our actual permissions, what does the third trio refer to?

A

the permission of all other users

56
Q

in actual permissions, what stands for readable? Linux.

A

r

57
Q

what stands for writable in linux permissions?

A

w

58
Q

what stands for executable in LInux permissions?

A

x

59
Q

in permissions, what do we say if a bit is set?

A

it is enabled.

60
Q

what does - mean in the linux actual permissions 9 bit section?

A

the permission is disabled. if not a dash, it is enabled.

61
Q

why are permissions in linux flexible and powerful?

A

They allow us to set specific permissions based on a role, such as an owner, in a group, or everyone else.

62
Q

where is the owner field of ls -l?

A

after the permissions field, after that one number. This owner is the one whose permissions are referred to in the first three bits of the permissions field.

63
Q

where is the group field of ls -l? where can you see the group this file belongs to?

A

after the owner field

64
Q

how do you change folder permissions on the Windows GUI?

A

right click on the folder you want to change permissions for, go to properties, security, Edit

65
Q

what do I need to input in the Add page to change user permissions? Adding a user on an ACL named Devan

A

enter the object names to select:
Devan
click check names to verify you typed it right, click OK after it is verified

65
Q

Where can I add a group or usernames to an ACL?

A

click Add in the Permissions for a file, in the Editing page.

66
Q

when can you click on Devan’s username in the permissions page to see the permissions he has?

A

when you add him to the ACL

67
Q

Where can I change permissions for a user I have added?

A

in the “permissions for user” section of the permissions page, where you edit permissions. Check the allow boxes for the permissions you want to give the user.

68
Q

what setting in the file/directory permissions page doesn’t allow you to have a certain permission? It takes precedence over the allow permissions in general

A

Deny.

69
Q

When is the Deny permissions option useful?

A

When a user is in a group with access to a folder, but we don’t want that individual in that group with access to have as much access as the rest of the group.

70
Q

what command can you use to modify a permission in the CLI?

A

icacls

71
Q

what command for permissions was designed for the command prompt before PowerShell? its parameters use permissions that confuse PowerShell

A

Icacls

72
Q

what do we need to do with icacls parameters so we tell PowerShell not to try to interpret the parameter as code?

A

single quotes

73
Q

what do I need to do to run the commands for icacls in cmd.exe?

A

not put in the quotes in order for them to work

74
Q

what is the format for giving everyone access to the filename, Vacation Pictures, in PowerShell?

A

”"”icacls ‘C:\Vacation Pictures' /grant ‘Everyone:(OI)(CI)(R)’ “””

75
Q

what is the format for using icacls in cmd.exe? to give everyone file permissions?

A

icacls “C:\Vacation Pictures” /grant Everyone:(OI)(CI)(R)

76
Q

in PowerShell, what quotes do we add to make PowerShell ignore parentheses and the fact that a filename path has a space?

A

single quotes

77
Q

in cmd.exe, what do we have to use with a path that has a space?

A

double quotes.

78
Q

what do I see when I put in PowerShell:
icacls ‘C:\Vacation Pictures’?

A

the DACLs for the file, which list the users that have permissions for it

79
Q

what permissions do you want to give a user you only want to see files, but not add to them or remove?

A

read

80
Q

how can I use icacls to give everyone Read permissions to a directory?

A

icacls ‘C:\Vacation Pictures' /grant ‘Everyone: (OI)(CI)(R)’

81
Q

what does the Everyone group include? PowerShell.

A

Everyone on the computer. Local user accounts, guests.

82
Q

A special type of user that is allowed to use the computer without a password. Disabled by default, but may be enabled in specific situations.

A

Guest users

83
Q

what if i only want people with passwords on the computer to be able to see a file?

A

Use the Authenticated Users group, which does not include guests

84
Q

how do you add a new dacl for the Authenticated Users group for the Vacation Pictures folder? Read permission

A

icacls ‘C:\Vacation Pictures' /grant: ‘Authenticated Users:(OI)(CI)(R)’

85
Q

how do you remove the group, “Everyone” from having access to the file, Vacation Pictures?

A

icacls ‘C:\Vacation Pictures’ /remove Everyone

no need to have Everyone surrounded by quotes.

86
Q

how do we use icacls to verify that permissions are set as intended? for Vacation Pictures

A

icacls ‘C:\Vacation Pictures’
and then you’ll see the list of Vacation Pictures

87
Q

what command do we use to change permissions in linux?

A

chmod

88
Q

what do you pick first for the chmod command?

A

the permission set you want to change

89
Q

what are the permission sets in linux?

A

owner, group the file belongs to, Other users

90
Q

what permission set is denoted by a u?

A

the owner

91
Q

what permission set in linux is denoted by a g?

A

the group the file belongs to

92
Q

what permission set in linux is denoted by an o?

A

other users

93
Q

how do you add or removed permissions? what symbol?

A

a plus or minus symbol that indicates who the permission effects

94
Q

what does chmod u+x, mycoolfile.txt do?

A

it says we want to change the permission of mycoolfile.txt by giving executable permissions to the owner, or u.

95
Q

what does chmod u-x mycoolfile.txt do?

A

removes executable permissions for the user.

96
Q

what does
chmod u+rx mycoolfile.txt
do?

A

add multiple permissions for the user to a file, read and execute in this case.

97
Q

what does chmod ugo+rx mycoolfile.txt do?

A

add multiple permissions, r and x, to multiple permission sets: owner, group the file belongs to, and others.

98
Q

what is known as symbolic format?

A

using ugo and rwx to denote users and permissions in chmod

99
Q

what is a benefit of changing permissions numerically?

A

it is much faster and simpler, and lets us change all permissions at once.

100
Q

numerical equivalent of rwx: for read, or r.

A

4 for read, or r

101
Q

the numerical equivalent of rwx: for write, or w

A

2 for write, or w

102
Q

the numerical equivalent of rwx: for execute, or x

A

1 for execute, or x

103
Q

how do we set permissions numerically?

A

add the numbers of rwx for every permission set you want to affect.

104
Q

what does chmod 754 mycoolfile.txt do?

A

change permissions for mycoolfile.txt so that:
7: owner has all permissions, 5: group that owns the file has the execute and read, 4: everyone else has the read permission

105
Q

what formats in linux can you use to change the permissions/

A

symbolic or numeric

106
Q

what command allows you to change the owner of a file?

A

the chown command

107
Q

What prank could I do that still keeps my computer relatively secure?

A

make a guest account that has very few permissions at all for someone to try to use.

108
Q

what would the command
sudo chown devan filename.txt
do?

A

change the owner of filename.txt to devan

109
Q

what does the command
sudo chgrp this_group filename.txt
do?

A

changes the group the file belongs to to this_group.

110
Q

what command do you use to change groups a file belongs to?

A

sudo chgrp filename.txt groupname

111
Q

what are an essential building block to computer security?

A

permissions

112
Q

what are the simple permissions in Windows?

A

Read, Read and Execute, List Folder Contents, Write, Modify, Full Control.

113
Q

What are sets of special, or specific permissions?

A

Simple permissions

114
Q

when you set a simple permission, what are you actually doing/

A

setting multiple special permissions

115
Q

where can you see a list of available special permissions? gui, windows

A

advanced tab, under the permission settings in the gui. click a username and go to advanced permissions.

116
Q

what can you see in advanced permissions?

A

a list of all the special permissions enabled on a file

117
Q

when you select a basic permission like read, what are you enabling in advanced permissions/

A

list folder/ read data, read attributes, read extended attributes, read permissions, synchronize

118
Q

how can you modify special permissions/

A

like any other basic permissions

119
Q

what permissions will be all you need in most cases?

A

simple permissions

120
Q

when would you need to use special permissions?

A

when making a file or folder that doesn’t follow a simple pattern

121
Q

in the PowerShell CLI, how would you view the special permissions? Temp folder

A

icacls C:\Windows\Temp

122
Q

what directory is used to hold temporary files for all users in the system?

A

C:\Windows\Temp

123
Q

what does IO mean in the DACL? for the C:\Windows\Temp folder

A

inherited only. it will be inherited, but it does not apply to this container.

124
Q

in the list of DACLs for C:\Windows\Temp, what includes the list of all user accounts on the local machine?

A

the user’s group

125
Q

In DACL’s, what permission does WD stand for?

A

create files/write data

126
Q

in DACLs, what permission does AD stand for?

A

Create folders, append data

127
Q

in DACLs, what does S stand for in permission?

A

synchronize

128
Q

what is the creator owner in DACL list?

A

a special user that represents the owner of whichever file the DACL applies to.

129
Q

What does
Creator owner:(OI)(CI)(IO)(F) represent?

A

whoever owns a file or folder has full control over it.

130
Q

how can you make a file? put it in C:\Windows\Temp, and name it example

A

mkdir C:\Windows\Temp\example

131
Q

what will
icacls C:\Windows\Temp\example&raquo_space; icacls.txt
do?

A

record the output of the icacls of example in the file icacls.txt.

132
Q

what is the redirect output symbol?

A

> >

133
Q

what does it mean that you inherit permissions when you make a file?

A

When you make a file, the permission settings for the owner or creator of the file apply to you.

134
Q
A