Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk7 min

Ubuntu Linux Administration: The Essential Tasks and When to Use Each

A practical, release-aware guide to administering Ubuntu Server: user privileges, package updates, systemd services, networking, layered security, and recoverable backups.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To administer Ubuntu Linux, use a normal account with sudo for privileged tasks, keep package updates separate from release upgrades, and make changes in a way you can recover from. This guide is aimed at administrators of an Ubuntu Server LTS installation using its terminal; Ubuntu Desktop uses different networking tools. Ubuntu’s server documentation targets the latest LTS, so check your installed release with cat /etc/os-release and verify release-specific instructions before changing a production system.

How do I add a user and give them sudo access on Ubuntu?

Ubuntu disables direct administrative root login by default. For routine administration, sign in as a named account and use sudo when a task needs elevated privileges. Authorized users authenticate with their own password, which makes it easier to limit and attribute administrative access than sharing a root login.

As an Amazon Associate I earn from qualifying purchases.

Create a local account

  1. Create the account and set its password when prompted: sudo adduser sam. Replace sam with the intended login name. The command also prompts for optional account details.

    What’s actually slowing this PC down?

    Pick the symptom - the matching free tool is one click away.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. If the person needs administrative privileges, add the account to the sudo group: sudo usermod -aG sudo sam. The -a option appends the group; omitting it can replace the user’s existing supplementary groups.

  3. Have the user start a new login session, then check membership with groups sam. They can test authorization with sudo -v, which prompts for their password if needed.

Grant sudo only when a person’s duties require it. Do not edit /etc/passwd or related identity files by hand as a beginner method. These steps apply to local accounts: accounts managed through LDAP, Active Directory, Samba, or another NSS identity source require that system’s own account-management procedure.

How do I update Ubuntu from the terminal?

Package maintenance and upgrading to a different Ubuntu release are separate jobs. The first updates packages within the installed release; the second changes the operating-system release and needs its own planning. Confirm the release and workload before scheduling either operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Refresh package information and apply updates

  1. Refresh the local package index: sudo apt update. This retrieves current package information; it does not install updates by itself.

  2. Review and install available package updates: sudo apt upgrade. Read the proposed changes before confirming, especially on a production server.

  3. If APT reports that some packages require dependency changes, review what a full upgrade would remove or install before choosing sudo apt full-upgrade. It may remove packages to resolve dependency changes, so do not treat it as a blind substitute for every routine upgrade.

For a production workload, test updates where practical and choose a maintenance window that fits the service’s availability requirements. Some updates may require restarting services or the machine; check the package and system notices rather than assuming that an update has taken effect without interruption.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose manual or automatic package updates

Ubuntu’s documented default setup includes unattended-upgrades, with security updates enabled and the job running daily. Actual behavior can vary with release and configuration. Check the installed system’s configuration and logs before relying on automatic updates, and decide whether automatic application fits your testing and maintenance policy. This setting concerns package updates, not an automatic move to a new Ubuntu release.

Plan a release upgrade separately

Before moving to another Ubuntu release, confirm that the target release is supported for your installation and that your applications, repositories, and recovery plan are ready. Ubuntu documents release upgrades separately from package updates. Do not use apt upgrade as a release-upgrade procedure; follow the release-specific Ubuntu instructions for the source and target releases instead.

How do I check and restart a service in Ubuntu?

Ubuntu uses systemd to manage services. The service name is package-specific, so confirm it from the package documentation or service’s own instructions rather than guessing.

  1. Inspect whether a service is active: systemctl status SERVICE.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Ask systemd to restart it: sudo systemctl restart SERVICE.

  3. Check its state again: systemctl status SERVICE. If it did not start, inspect the reported error and service logs before making additional changes.

Replace SERVICE with the actual unit name, such as a package’s documented service unit. A restart can interrupt users or connections, so consider the service’s impact before doing it on a live system.

Change service settings without fighting package updates

Use the configuration method documented for the specific package. Package-managed files can be changed by package updates, and Ubuntu documents systemd drop-in overrides as a way to customize service behavior without editing the vendor’s unit file directly. The appropriate configuration file or override depends on the service; check its documentation first, then review the resulting configuration and service status after applying a change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I configure networking on Ubuntu Server?

First identify which system and tool own the network configuration. Ubuntu Server uses Netplan as a high-level YAML configuration layer; the underlying renderer and installation setup matter. Ubuntu Desktop networking is managed through NetworkManager and follows a different configuration path. Do not apply Server instructions to Desktop by assumption.

Inspect the current network before changing it

Make remote changes with a recovery path

A mistaken address, route, or DNS change can sever the very connection you are using to administer the machine. Before changing a remote server, arrange local console or out-of-band recovery access where feasible, preserve a copy of the current configuration, and plan how to restore it. Check the Netplan commands and behavior against the installed release before applying a change; do not assume every machine uses the same renderer or configuration.

Ubuntu’s Server networking guidance describes Chrony as the default time-synchronization service in its Server context; timedatectl and timesyncd are alternatives. Check what is installed and active on the target machine before changing time synchronization, since service ownership and configuration can differ.

How should I secure an Ubuntu system?

Security is a set of layers, not a single command or universal firewall recipe. Build the baseline around current software, limited privilege, protected remote access, and controls that match the services the machine actually exposes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Advanced authentication, certificate management, VPN deployment, and centrally managed identities each need procedures tailored to the organization and service; they are beyond a basic administration checklist.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How do I back up an Ubuntu server?

A backup is useful only if it covers the data and system state you need and can be restored. Decide what to protect, how often to copy it, where copies will live, and how recovery will work. Keep important backup media off-site; removable hard drives are one possible physical destination, but a local copy alone does not provide off-site protection.

Choose a backup approach that fits the system

Ubuntu’s documentation names Bacula for multi-system network backups and rsnapshot for periodic local or remote snapshots over SSH on a single system. They are examples, not universal recommendations. Compare candidate approaches by deployment scale, automation, encryption, incremental behavior, complexity, storage location, and restore procedure. A custom shell script may suit a narrow task, but it also leaves you responsible for scheduling, error reporting, retention, and recovery checks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make restoration part of the plan

  1. List the files, databases, configuration, and other state the service needs to recover; do not assume that copying a few obvious directories captures everything.

  2. Set a frequency and retention policy based on how much data you can afford to lose and how far back you may need to recover.

  3. Keep copies in a separate location, including an off-site copy for important data, and restrict access to backup media.

  4. Test restoring representative files or a system in a safe environment. Confirm that the restored service works, not merely that a backup job completed successfully.

    Free tools Windows power users keep installed

    One-click scans. No signup required.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What should I troubleshoot first?

Start with the narrowest evidence for the symptom, then change one thing at a time. This makes it easier to distinguish a package problem from a service failure or a network issue.

  • A service is unavailable: check systemctl status SERVICE, then read the error it reports and the service’s own logs or documentation.

  • A package operation fails: note the exact APT error and inspect what packages or dependencies it proposes to change before retrying with a more disruptive operation.

  • A remote host is unreachable after a network change: use the planned console or recovery path; verify interface addresses, routes, DNS, and the active configuration owner before making another change.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • A machine needs recovery: use the documented restore process and confirm data and service integrity, rather than assuming a successful copy is sufficient.

These tasks are a foundation, not coverage of every server role. Databases, directory services, containers, virtualization, high availability, and advanced observability each introduce additional design and maintenance requirements.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.