CIS 527



Lab 1 - Ubuntu User Management

root

  • System Administrator Account
  • UID = 0; GID = 0
  • Complete Control - No Permissions Checks
  • Disabled by Default - No Password
  • Set a Password to Enable
  • Use "sudo" Instead!

sudo

  • "Super User Do"
  • Run Commands as "root" User
  • Add Users to "sudo" Group
  • Permissions in /etc/sudoers
  • Use "visudo" to Edit File

Regular User Accounts

  • Can Log On Interactively
  • Types: Standard & Administrator
  • UID: Start at 1000 and Up
  • Has Group of Same Name and GID
  • Directory in /home
  • Important for Module 4

System User Accounts

  • Cannot Log On Interactively
  • Used by Programs & Services (Daemons)
  • Help With File Permissions

Configuring User Accounts

  • Settings > Users
  • Users and Groups from
    gnome-system-tools
  • Terminal

Terminal Commands

  • adduser - add a regular user
  • useradd - add a system user
  • userdel - remove a user
  • usermod - modify a user
    • usermod -a -G <group> <user>
      - add user to a group
    • passwd - change a password

Terminal Commands

  • groupadd - add a group
  • groupdel - remove a group
  • groupmod - modify group
  • gpasswd - change group restrictions & password
  • newgrp - log in to a new group

Important Files

  • /etc/passwd
  • /etc/shadow
  • /etc/group
  • /etc/gshadow

Next Step!

Start Lab 1, Task 5:

Configure Ubuntu 20.04