Week 2 Flashcards
Windows domain
A network of computers, users, files, etc that are added to a central database
User Access Control (UAC)
A feature in Windows that prevents unauthorized changes to a system
/logonpasswordchg:yes
Asks the user to change the default password
PASSWD
Command to change password in Linux
sudo passwd -e victor
Asks the user Victor to change his password
net user andrea * /add
Lets you add a user in Windows and setup a default password for them
Remove-LocalUser user
Windows command followed by the specified user you want to remove
sudo useradd user
Adds a specified user in Linux
sudo userdel user
Deletes a specified user in Linux
User profile
User account on a mobile device
Primary account
Root account on a mobile device
What are access control lists used for?
To assign permissions
Read permission
Lets the user see that be file exists, and allows them to read its contents. Also lets them user read the files and directories in a directory
Read and Execute permission
Allows the user to read files, and if the file is an executable, the user can run the file.
List folder contents permission
An alias for Read and Execute permission on a directory
Write permission
Lets the user make changes to a file. Does not include read permission, so if you want the user to be able to read the file too, then both read and write permission will need to be given.
Modify permission
An umbrella permission that includes read, execute, and write
Full control permission
Allows a user to do whatever they want with a specified file, including giving various permissions to other users for access to the file
What are the three permissions that can be given in Linux?
Read, write, execute
What’re the owner, group, and other users denoted by?
Owner - u
Group - g
Other users - o
How to grant permissions in windows cli?
icacls “file” /grant user:(permission 1)(permission 2)
How do you grant permissions in Linux BASH?
chmod u/g/o + r/w/x file
How to check file permissions in Linux
ls -l file_name
Numerical equivalents for each permission in Linux
4 for r
2 for w
1 for x
how to change owner or group of a file?
chowm user_name - change owner
chgrp group_name - change group owner
WD, AD, and S permissions
WD - create files/write data
AD - create folders/append data
S - Synchronize
Sticky bit permission in Linux
Sticks a file of folder down to make it so anyone can write to a file or folder but they can’t delete anything