2026-07-16 16:55
Status:
Tags: Coursera Google IT Certificate - Technical Support & Fundamentals Linux Commands Windows Linux Windows Commands Operating System Operating Systems and You - Becoming a Power User
OS&Y - Module 2 - Users and Permissions
==Users and Groups
-
Users, Administrators, and Groups, Oh my!:
-
All user accounts are generally separated from each other, and therefore someone on one user account cannot see the files on another user account
-
Standard User- one who is given access to a machine but has restricted access to do things like install software or change certain settings
-
Administrator - a user who has complete control over a machine, letting them view all the user accounts, change files, change permissions / settings, and everything
-
You can have multiple administrators on a given machine
-
Users are put together in groups according to their permissions level, and can only perform specific things on the computer
-
A certain group might be able to have different restrictions or abilities
-
-
Windows: View User and Group Information:
-
You can use computer management as a tool that lets you basically manage groups in users, but also many other things like disk management etc (windows 10)
-
You can also manage multiple machines on this application instead of just your local one via a Windows Domain
-
A network of computers, users, files, etc that are added to a central database
-
Event View stores the system logs
-
Shared Folders is the folders shared between users across the define
-
Local Users and Groups is what it sounds like
-
There is more, but they are pretty self explanatory
-
There are built in accounts like Guest and Administrator these are pretty self explanatory in what they do
-
You can do a bunch of things whenever you are admin, like their password management, if they are able to log in or not, basically a bunch of stuff
-
User Account Control (UAC)- a feature in windows that prevents unauthorized changes to a system, basically changes need to be approved by an administrated or given with a password
-
-
Windows: View User and Group Information using CLI:
- You can basically see the same information inside of the CLI
- You can use
Get-LocalUserin order to see which user is activated or not - You can use
Get-LocalGroupto see all of the administrative group - You can also use
Get-LocalGroupMemberin order to see a given number of users in the inputted group
-
Linux: Users, Superuser, and Beyond:
-
Different users types have different modification capabliaties in linux
-
Root User- first user that gets automatically created when we install a Linux OS
-
This basically allows you to have root access as this user, they are the super user, and therefore are able to do anything on the account, meaning that they can access things like the special folders in the root directories
-
On debian/ubuntu distributions, you can run root commands by either logining into the root user, or just use
sudoor super user do in front of a given command -
To view the groups inside of a linux distro, you can just do into the
/etc/groupand use cat on it in order to print out the contents -
It holds the ID number for that field, as well as a list of the users that are in that group
-
-
Windows: Passwords:
-
When setting up a password, you want to be the only one to know that password
-
YOU as an admin should NOT know the password of your end user, but should instead have them type it in themselves
-
To reset a password you can go to computer management, right click the persons name, and then just click “user must change password at next log-on”, so it lets them change out their password next time the log in. You can set a password for them manually by right clicking on their name and clicking “set password”
-
You can also then change their password by manually using the
netcommand, which can be referenced more for either a manual reset or a better one via net, check for reference General Commands For Command Line Interfaces
-
-
Linux: Passwords:
- You basically just use the
passwd <username>command, and then type in the current user, and the new user - This gets stored in the special etc/shadow folder/file which basically is the passwords scrambled up
- You basically just use the
-
Windows: Adding and Removing Users:
-
You go to computer management, go over to the users and groups, then right click and select new user
-
Set a username, full name, and then a default password to make the user change the password on the next login
-
To remove a user, right click on them and then click delete
-
To remove them via the CLI, refer to General Commands For Command Line Interfaces for the
netandRemove-LocalUserwindows commands
-
-
Linux: Adding and Removing Users:
- To add or remove users you simply use the
useraddcommand, and then theuserdelto get rid of the account as well
- To add or remove users you simply use the
-
Mobile Users and Accounts:
-
A mobile device usually only handles out a single device at a time, and is therefore able to mostly only handle one account on one device
-
Some devices you might not even need to log into, like a GPS device, it has user accounts in there, like the admin or root, but not ones you will have to see
-
The user profile is like the user account on a mobile device
-
It holds your settings, applications, and all such other things
-
The primary account can be used to sync data over to the cloud if need be
-
A user profile can be signed into addition accounts, like gmail etc
-
Some mobile devices do allow for multiple accounts (see supplemental reading)
-
By default, you generally do not need to sign in with the primary account password each time you wish to login, but that can be changed of course
-
Mobile devices have different ways of saving your data, like the mobile device pin, or an unlock pattern / fingerprint
-
Bio-metric Data- Something about you that is unique to you, like a fingerprint, a voice, or a face
-
-
Supplemental Reading for Mobile Users and Accounts:
==Permissions
-
Windows: File Permissions:
-
File permissions basically determine what kind of users can access specific files, this is usually done based on what a file is able to do
-
Access Control Lists (ACL)- files and directory permissions are assigned via these
-
Discretionary Access Control Lists (DACL)
-
Files and folders can also have System access control lists (SACLs) assigned to them as well
-
These are used to tell windows to make an event log every single time that the file or folder is accessed
-
A DACL is basically a note about who can use the file, and what they are allowed to do with it
-
Each file or folder has an owner, and a few or more DACLs
-
Read permission- lets you read files and contents and sub-contents
-
Read & Execute permission- same as read, but you also have the ability to run the file if it is x.exe
-
List Folder Contents permission- basically read and execute files in a directory
-
Write Permission- lets you make changes to a file
-
Modify permission- lets you read, execute, and write in directory / file
-
Full Control permission- they can do anything they want to the file
-
-
Supplemental Reading for Windows ACL:
-
Linux: File Permissions:
- There are Three main permissions that someone might be able to have in linux
- Read- let someone read the contents of a file or folder
- Write- can write to a file or folder
- Execute- they can execute the file if possible
- The different things such as
rwxrw-r--are the permissions you see when usingls -lthe first one is the file type, a dash is a regular file, while d stands for directory - The first 3 bits
rwxare the permissions of the creator of the file, the next two the permissions of all people in the group, the rest the permissions of everyone else
- There are Three main permissions that someone might be able to have in linux
-
Windows: Modifying Permissions:
-
To change permissions in windows, you can right click the folder, go to properties, and then click on the security tab
-
Click on the file permissions and then you can add or remove the different people or users that you want to give permissions for the file
-
You can give them different permissions and other such things
-
To do so in the CLI, you can use the
icaclscommand in the powershell followed by the path you want to change, the /grant or /remove flag, and then the configuration, see General Commands For Command Line Interfaces for more details
-
-
Linux: Modifying Permissions:
- You use the
chmodor change modifications command in order to change a files permissions in linux, it has numerical changes as well as special changes like u+rx which lets the owner of the file be able to read and execute it, or justchmod 500which gives the owner the same perms (no perms for the other groups) - You can also use
chownto change the owner of a given file
- You use the
-
Windows: Special Permissions:
-
Simple Permissions- sets of special, or specific permissions
-
-
These instead are a list of advanced or special permissions, which are basically more detailed than the simple ones
-
Whenever you set a simple permissions, you underlying set a bunch of special ones as well
-
You can essentially fine tune these permissions if you want to in special cases
-
To view these special permissions via the CLI, you can use the
icaclscommand once again
-
-
Linux: SetUID, SetGID, Sticky Bit:
-
Linux also has the ability to give special permissions, similar in way to how windows does as well
-
There is a way for regular users to be able to do root things without explicitly giving them that root access
-
The reason why passwd works, and the we are able to write to etc/shadow, which is owned by root, is because of something called SetUID
-
When an ‘s’ is substituted where a regular permission bit (r, w, x) would be, it means SetUID, which lets you run it with the permissions of the owner of the file
-
Basically you can do
chmod u+sto do this, or numerically with the number 4, like thischmod 4755 <file> -
You can also run the SetGID which basically lets you run the command as a part of the group or with the permissions of the group, done with
chmod 2755 <file> -
Sticky Bit- it makes it so that way anyone can read to a file or folder, but nobody can delete any of the things that they have written, only the owner of the file, often used with t or a 1 with the chmod method, useful for things like temp files
-
==Glossary
ACL: Access Control Lists
Administrator: A user that has complete control over a machine
Biometric data: A way of protecting your accounts and information using biometric data such as facial recognition and fingerprint
Computer management: A tool that lets you manage a local or remote computer
DACL: Discretionary Access Control List
File permissions: A process for setting permissions for who has access to certain files
Full control: A user or group with full control that can do anything they want to files
Inherit only: A permission group that means that a DACL will be inherited, but not applied to a container
List folder contents: A command that will execute and list folder contents and is an alias for Read and Execute
Mobile device management: A system used to apply and enforce rules about how the device has to be configured and used
Modify: An umbrella permission that includes read and execute and write
Primary account: The initial account you made during setup
Read and execute permission: Permissions that grant you access to read the file that exists and execute it if its runnable
Read permission: Permissions that grant you access to read the file that exists
Root user: It is the first user that gets automatically created when we install a Linux OS and has all the privileges on the OS. Also called the super user. There’s technically only one superuser or root account, but anyone that’s granted access to use their powers can be called a superuser too
SACL’s: System Access Control List
Simple permissions: Special or specific permissions
Single sign on (SSO): An account that grants you access to multiple accounts without require constant entry of a password or username
Standard user: A user who is given access to the machine but has restricted access to do thing like install software or change certain setting
Windows domain: A network of computers and users that are added to a central database
Write permission: A permission that allows you to make changes to a file
