Data: Create a SUDO User
WANT TO HELP? CLICK THE ★ (STAR LOGO) in the Upper-Right!
- 📂 [Click Here] - Google G-Suite (Unlimited Hard Drive Space & Storage)
- 📂 [Click Here] - Top Performance NewsHost! - Blitz Members Receive a 58% Discount
http://sudo.pgblitz.com | Discord ( !sudo )Reference Shortcut -
Table of Contents
New to Linux? So like most of us when we first start, we ponder the questions - what is the purpose of a sudo user? Why not just log in and use root for everything. Using root is "ok", but is not ideal unless you have to. Sudo is an abbreviation of “superuser do” and is a Linux command that allows programs to be executed as a superuser (aka root user) or another user. For those who are familiar with using Windows or MacOS, it the same situation when asked for admin credentials.
What makes a sudo user different is that the user is allowed to utilize elevated credentials when the password to execute is requested as such. Even with the extensive amount of security training that one has, it is easy to forget that being the admin on a box is a bad thing when conducting general tasks such as surfing the web. If a rootkit is present, well the rootkit will have admin credentials to install (it's a bit more complicated, but the idea of is worth the understanding.
When you using Linux for the first time, deleting a folder not within your /home/user folder will prompt for sudo credentials. If you are not a sudo user... well you cannot do anything about it. As you can see in the demo below, the user home is already a sudo user. @ position (1), the user 'home' is attempting to make a folder called corn at the root directory of the operating system. It fails because home is attempting to make a folder outside of it's granted user permissions. Therefore, utilizing 'sudo' @ position (2) enables the user 'home' to execute an elevated action. The end state @ position (3) allows the creation of the folder.
Example of SUDO Execution
So why does PlexGuide need root or sudo credentials? Remember, PlexGuide is a massive installer so credentials are required for certain actions.
2. YouTube Video - Create a SUDO User
PG YOUTUBE: Creating a SUDO User
- A SUDO USER is not REQUIRED for PLEXGUIDE, but great to have for security reasons!
- Substitute [YOUR-USERNAME] with your username
- Run each line one at a time. Do not mass copy and paste!
- Good idea to change your root password if you were emailed one by your server/VPS provider
- Type 'passwd' and type a new one whilst still logged in as root user
- 'su' means substitute/switch user
- You must execute PlexGuide as a SUDO or ROOT user
4. How To Instructions
su root useradd -m -d /home/YOUR-USERNAME YOUR-USERNAME usermod -aG sudo YOUR-USERNAME passwd YOUR-USERNAME sudo usermod -s /bin/bash YOUR-USERNAME su YOUR-USERNAME
Overall, we hope that the information presented was a bit useful. When first researched, it took about two days due to poor and scattered information that is found all over the Internet! Good luck!