Skip to content

Data: Create a SUDO User

Clownfused edited this page Apr 17, 2019 · 19 revisions
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

Reference Shortcut - | Discord ( !sudo )

Table of Contents

  1. Intro
  2. YouTube: Creating a SUDO User
  3. Notes
  4. How To Instructions
  5. Summary

1. Intro

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

3. Notes

  • 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
usermod -aG sudo YOUR-USERNAME
sudo usermod -s /bin/bash YOUR-USERNAME

Demo Picture

5. Summary

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!

Useful Starter Links

  1. Introduction
  2. Blitz YouTube Channel
  3. G-Suite Signup
  4. Recommended NewsHosts

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PG Editions
  5. PGBlitz Repos
  6. Common Issues

Deploy & Config

  1. SSH Server Access
  2. Create a SUDO User
  3. Install PGBlitz
  4. WatchTower
  5. Remote Path Mappings

Data Transport
  1. PG Clone
    1. Google OAuth Keys
    2. PG Move
    3. PG Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PG Shield
  4. PG Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PG Fork
  8. Extra PG Commands

Blitz App Info

  1. Accessing PG Apps
  2. App Port Scheme
  3. Plex to AutoScan

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. RuTorrent
  15. Sonarr
  16. Tautulli
Community Apps [Expand]
  1. AirSonic
  2. AllTube
  3. Bazarr
  4. Beets
  5. Bitwarden
  6. BookSonic
  7. cAdvisor
  8. Cloud Commander
  9. DDClient
  10. Deezloaderremix
  11. Deluge
  12. DelugeVPN
  13. Duplicati
  14. EmbyStats
  15. FlexGet
  16. Gazee
  17. Gitea
  18. Handbrake
  19. Headphones
  20. Heimdall
  21. HomeAssistant
  22. HTPCManager
  23. JDownloader2
  24. jd2-openvpn
  25. Kitana
  26. Logarr
  27. MakeMKV
  28. MariaDB
  29. McMyadmin
  30. MEDUSA
  31. Mellow
  32. Monitorr
  33. Muximux
  34. Mylar
  35. NextCloud
  36. NowShowing
  37. NZBHydra2
  38. NZBThrottle
  39. Organizr
  40. pyLoad
  41. Radarr4k
  42. Resilio
  43. rflood-openvpn
  44. rutorrent-openvpn
  45. ShareSite
  46. Shoko Anime Server
  47. SpeedTest
  48. SyncLounge
  49. Syncthing
  50. The Lounge
  51. Transmission
  52. Trakt.or
  53. Ubooquity
  54. x TeVe
  55. Zammad

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
Clone this wiki locally
You can’t perform that action at this time.