I have an ubuntu server installed. I go into it as root , enter the command useradd user , but the folders /home/user does not appear as the desktop version. Why How to create a full user?

    3 answers 3

    Try adding a user through adduser user .

      Check out the man useradd

      Add a new user and specify a home folder.

       sudo useradd -d /home/testuser -m testuser 

      Set user password

       sudo passwd testuser 

        Why

        Because by default the home directory is not created.

        How to create a full user?

        Use the -m option:

        useradd -m user