Ubuntu 19.04
Sponsored Link

Initial Settings : Add User Accounts2019/04/22

[1] After installing System, there is only a user you configured during installation except System Accounts and he is an administrative user. If you'd like to add more common user accounts on System, Configure like follows.
# add a user [disco]

sudo adduser disco

[sudo] password for ubuntu:  # input self password
Adding user `disco' ...
Adding new group `disco' (1001) ...
Adding new user `disco' (1001) with group `disco' ...
Creating home directory `/home/disco' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:     # set user password
Retype new UNIX password:    # confirm
passwd: password updated successfully
Changing the user information for disco
Enter the new value, or press ENTER for the default
        Full Name []:        # input user info (OK if not set)
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y
[2] If you'd like to give privileges to a new user, Configure like follows.
usermod -G sudo disco

su - disco

# try to run a command which requires root privilege

[sudo] password for disco:    
# input own password

Ubuntu 19.04 ubuntu ttyS0

dlp login:
[3] If you'd like to remove user accounts, Configure like follows.
# remove a user [disco] (only removed user account)

ubuntu@dlp:~$ sudo
deluser disco
# remove a user [disco] (removed user account and his home directory)

ubuntu@dlp:~$ sudo
deluser disco --remove-home
Matched Content