Week 2 - Users and Groups Flashcards
Different between standard user, admin, groups?
standard user: limited access, can’t install software or change certain settings
admin: complete control, can view every file and account
groups: users grouped by access level
What application do you use to view user and group information? W
Computer management
What’s a Windows domain? What’s included?
a network of computers, users, and files that are configured on a central database
What does UAC stand for? What does it do?
User Access Control
It prevents unauthorized changes to a system
Do you have to be logged in all the time as an administrator? What makes this possible?
No, don’t have to be logged in as Admin can be logged in on your acccount
UAC helps make this possible
What command lets you quickly see a list of users on the computer?w
Get-LocalUser
(useful to check if admin is turned on for that computer)
What command lets you quickly see a list of groups on the computer? w
Get-LocalGroup
What windows command lets you see who is in a certain group?
Get-LocalGroupMember (group name)
What are the 3 windows commands to see user and group permissions?
- Get-LocalUser
- Get-LocalGroup
- Get-LocalGroupMember (group name)
What is a root user in Linux?
A root user is the first default superuser that is created when an OS is installed
Why is always being logged into an admin or root account dangerous?
There are many important files that could be accidentally deleted or modified
What does sudo mean? l
sudo means superuser do
Where in a command do you place sudo?l
at the front
sudo cat /home/users
When would you have to use sudo?l
When you want to access a root-restricted file
What does su mean? L
substitute user
What’s the function of su? What happens when you use it? L
this changes you to a different user, if none is specified then it goes to root by default
How do you view memberships for all groups in Linux? Find out who can access run sudo?
cat /etc/group
What are the 4 fields when viewing memberships for groups on Linux?
- group name
- group password
- group ID
- users in the group
What’s the file path of the location of the file that contains user information (local)? linux
cat /etc/passwd
How do you tell Bash you want to run a command as root? 2
Trying to run /etc/sudoers but permission error
sudo /etc/sudoers
or
sudo su - (changes you to the substitute default root user) then run the command again
Since computers don’t identify a group or user by its name, how does it identify them?
Group or User IDs (UID)
How do you view a root-restricted file?
sudo cat /file/location
or
sudo su -
then cat filelocation
How would you use the substitute user command to run a root-restricted file?
sudo su -
then run the restricted file command again
What is root’s UID?
0
Why do so many users pop up when we use /etc/password to view users on our local machine?
There are a lot of processes constantly running that our computer needs to associate with a user
What are the 3 main relevant fields in the standard output of cat /etc/passwd?
- user name
- user password
- user ID(UID)