目次

【Ubuntu Server】ユーザ追加手順

Ubuntuで、ユーザ登録する手順の備忘録を残す。

ユーザ作成

$ sudo adduser user_name
Adding user `user_name' ...
Adding new group `user_name' (1002) ...
Adding new user `user_name' (1002) with group `user_name' ...
Creating home directory `/home/user_name' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:  # パスワード入力
Retype new UNIX password: # パスワード入力(確認)
passwd: password updated successfully
Changing the user information for user_name
Enter the new value, or press ENTER for the default
        Full Name []:    # Enter連打
        Room Number []: 
        Work Phone []: 
        Home Phone []: 
        Other []: 
Is the information correct? [Y/n] Y  # Yes
# 終了

sudoグループへの追加

管理者となるユーザは、sudoが実行できるようにsudoグループに登録

$ sudo gpasswd -a user_name sudo
Adding user user_name to group sudo

補足

【Ubuntu 18.04/16.04 LTS Server】sambaサーバを使う

参考