Skip to content
tech.tutulutu.ee
Simple Blog about Tech – written for myself. Use with caution.
  • Home
  • Links
command-line/linux

Linux Ubuntu add new user

Posted November 3, 2022 , Updated April 6, 2026

Use adduser, not useradd

sudo adduser john

or

sudo useradd -m john
sudo passwd john

If you want to force user change password on first login:

sudo chage -d 0 john

(“chage” is correct!)
https://phoenixnap.com/kb/useradd-vs-adduser
https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-20-04

add user

Post navigation

Older post
add google calendar to thunderbird
Newer post
Linux Ubuntu add user to sudoers

Recent Posts

  • Change Moodle domain
  • Get Moodle version
  • How to begin with your code like from scratch in git context
  • Get info about network
  • Git tutorials

Categories

  • Angularjs
  • apache
  • Atom
  • aws
  • bootstrap
  • command-line
  • css
  • docker
  • firefox
  • Git
  • gmail
  • https
  • Java
  • jQuery
  • LAN
  • laravel
  • linux
  • music
  • MySQL
  • network
  • nginx
  • nodejs
  • npm
  • php
  • phpunit
  • printers
  • Python
  • Sailsjs
  • sql
  • ssh
  • SSL and HTTPS
  • thunderbird
  • Uncategorized
  • vim
  • web
  • woocommerce
  • wordpress

Tags

angularjs apache atom aws bootstrap browser command line cron css dns docker dpkg find find file firefox gedit git htaccess html htpasswd https java laravel linux lvm moodle mysql nautilus network nginx npm php phpunit port printers rsync s3cmd scp server ssh ssl thunderbird ubuntu woocommerce wordpress
© 2026 tech.tutulutu.ee
Powered by WordPress | Theme: Graphy by Themegraphy