Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

Jumped onto Ubuntu 26.04 LTS? Here’s How to Add a New User Account

Posted on October 1, 2026

So you’ve just installed Ubuntu 26.04 LTS. Nice. When you first set the machine up—whether it’s a local install or a fresh cloud instance—Ubuntu hands you a single default user and sends you on your way.

For a personal machine, one account is all you need. But the moment someone else needs access, you’re building a restricted dev environment, or you simply don’t want one stray script having the run of the whole system—that’s when separate user accounts earn their keep.

Here’s how to add one without breaking anything.

What You Need First

Make sure your account has sudo (or root) privileges. Without it, you can’t create users at all—so confirm you’re an admin before you start.

The Easy Way: adduser

This takes about thirty seconds.

1. Open a terminal and run:

Let’s say we’re adding a user named Bob:

sudo adduser bob

2. Enter your password

Since the command runs under sudo, the terminal first asks for your password to confirm it’s really you.

3. Set a password for the new user

Type a password for Bob, press Enter, then type it again to confirm. Don’t worry that nothing shows up as you type—Linux hides passwords on purpose.

4. Skip through the questions

Next, Ubuntu asks for some extra details: full name, room number, work phone, home phone, and “other.” Almost nobody fills these in. Just press Enter through all of them.

5. Confirm

When it asks “Is the information correct?”, type Y and hit Enter.

6. Verify it worked

Bob should now exist on the system. You can confirm by checking /etc/passwd:

cat /etc/passwd | grep bob

If you see a line starting with bob:x:..., you’re done.

What’s Actually Happening

adduser is a friendly wrapper that does the heavy lifting behind the scenes. When you run it, Ubuntu automatically:

  • Creates the new user
  • Creates a matching group with the same name
  • Assigns a UID and GID following standard Debian conventions
  • Creates the home directory (/home/bob) and copies the default template files from /etc/skel
  • Sets up the login password
  • Runs any custom scripts you’ve configured

Skipping the Prompts Entirely

If you’re scripting this, or you just can’t be bothered answering a bunch of questions, you can create the account non-interactively with one line:

sudo adduser --disabled-password --gecos "" bob

The Low-Level Alternative: useradd

You may have also seen useradd mentioned. Yes, the names are confusingly similar—welcome to Linux.

useradd is the bare-bones, low-level tool. It doesn’t walk you through anything; you have to specify everything yourself:

sudo useradd -s <SHELL> -m -d <HomeDir> -g <Group> UserName

Here’s what each flag does:

  • -s: the default login shell (e.g., /bin/bash)
  • -d: the home directory path
  • -m: creates the home directory if it doesn’t already exist
  • -g: the primary group

One thing to watch: useradd never asks you to set a password, so the account stays locked until you do it manually:

sudo passwd bob

And here’s a mistake genuinely worth avoiding: don’t forget the username at the end of that command. Running sudo passwd on its own changes the root password, which is a much bigger deal than you probably intended.

A Few Extra Things Worth Knowing

adduser can do more than create regular logins. You can also use it to:

  • Add a standard user
  • Create a system user (--system)
  • Create a user group (--group)
  • Create a system group (--system --group)
  • Add an existing user to an existing group

For the full details, check the manual:

man adduser

There’s also a config file at /etc/adduser.conf that controls system-wide behavior—things like default home directory paths, UID ranges, and skeleton directories. To read up on that:

man adduser.conf

Terbaru

  • Grab Videos from Anywhere with ReClip (Can Running Locally)
  • Jumped onto Ubuntu 26.04 LTS? Here’s How to Add a New User Account
  • Tutorial Cara Install WPS Office di Linux (Alternatif Microsoft Office)
  • Tutorial Upgrade Server Ubuntu 24.04 LTS ke Ubuntu 26.04 LTS dengan Aman
  • Inilah Alasan kenapa akun TikTok dibatasi tidak bisa klaim koin dan masalah pembatasan lainnya?
  • Apa penyebab gagal kirim SMS ke 89888 padahal pulsa masih ada?
  • Mengenal Donghua: Kenapa Animasi dari Tiongkok Ini Lagi Naik Daun Banget
  • OpenAI Bocorin Data Gambar Pengguna? Ini Kabar Terbaru Soal Insiden AI yang Bikin Heboh
  • Kenapa Postingan Instagram Kalian Sepi Like Padahal Followers Udah Banyak? Ini Rahasianya
  • Cara Menambah View Story Instagram Gratis Biar Nggak Sia-sia
  • Kenapa View TikTok Kalian Mentok di Angka Kecil dan Cara Ngatasinnya
  • Imbas Pesatnya Laporan CVE, Ubuntu Bakal Rilis Kernel Update Tiap Dua Minggu
  • Cara Gampang Cari Kata di Google Sheets Pakai Laptop sama HP
  • Kabar Terbaru Antigravity SDK: Sekarang Bisa Pakai Model Lokal Kayak Gemma 4 26B Tanpa Perlu Internet
  • Kabar Terbaru Model K2 Horizon Dirilis: MoVA 36B EXL3 Buat Kalian yang Punya GPU Beragam
  • Ini Alasan Kenapa Kalian Harus Cek Masa Dukungan HP Android Kalian Sekarang Juga
  • Cara Cek Followers Baru Asli atau Bot Tanpa Harus Ngitung Satu-Satu
  • Claude Opus 5.5 Baru Rilis, Bikin AI Kalian Jadi Jauh Lebih Powerfull!
  • Update Kondisi Market Bitcoin BTC/USDT Per 23 September 2026, Beli atau Jual Nih?
  • Paham Semua Keluarga Model AI Gemma 4
  • Rumor Laptop Android Ternyata Bener, Ini Daftar 4 Laptop Android dari Google!
  • LCOS Lagi Naik Daun: OS Buatan Lunduke Tembus Peringkat 12 DistroWatch dan Punya Kernel Sendiri
  • Cara Pindah Data Android ke iPhone Tanpa Reset iPhone
  • Valve: Steam Deck 2 Tetap di Develop, Meski RAM Naik Harga Gila-gilaan
  • Apa itu Dumpling? dari Sejarah Sampai Tren Saat ini
  • Jadwal Event Cosplay dan Pop Culture Oktober 2026 yang Wajib Kalian Pantau
  • Cara Ganti Nama Facebook di Android, iPhone, Laptop, dan Facebook Lite Terbaru
  • Apa saja yang baru di WordPress 7.1.1?
  • Pilih Mana: XAMPP, Laragon, atau Herd Buat Belajar PHP?
  • Kenapa Views Reels Kalian Tiba-tiba Anjlok? Ini Penyebab dan Cara Ngatasinya
  • Canonical: Ubuntu coming soon to Snapdragon X2 Series platforms
  • Finally, wolfSSL adds post-quantum algorithms!
  • How to Run Gemma Embedding Models Using Docker
  • Deploy Nginx Rootful Container with Podman
  • How to Sandboxing Browser on Linux Desktop with Flatpak
  • Pruna AI Release their Qwen-Image 2.1 LoRA Adapter, 6x Faster than Regular Qwen
  • The Rise and Fall of the Coding Holy Grail: Is Stack Overflow Just AI Fuel Now?
  • Zyphra is The Pioneer, Why Everyone is Suddenly Obsessed with AMD and Not Just Nvidia Anymore
  • Stop Trusting Your Prompts to Save Your Business Data
  • How to Automate Your Entire SEO Strategy Using a Swarm of 100 Free AI Agents Working in Parallel
  • Kenapa Akpol 1994 tiba-tiba ramai lagi? Ini soal calon Kapolri Suyudi Ario Seto dan hubungannya dengan Ferdy Sambo
  • Bingung kapan Boyfriend Day 2026? Jangan ketuker sama My Girl Day atau Girlfriend Day, ini jadwal benarnya
  • Mengenal Nurfaizi Suwandi, Sosok Purnawirawan Polri yang Kabarnya Jadi Mertua Suyudi Ario Seto
  • Lagi rame soal Jimmy Masrin, katanya dapat fasilitas khusus di Lapas Cibinong pas lagi jalanin hukuman korupsi?
  • Kenalan sama Kelra, pemain baru ONIC Indonesia yang bawa nama anaknya di skin Beatrix

©2026 emka.web.id | Design: Newspaperly WordPress Theme