where to go to add a user in ubuntu (New to Linux)

Asked by GDMino

Where do I go some instructions say go to root dir and type (where do i do the following and how do I get there) I am new to ubuntu and I got this far (true Blue IBM er ) until New Years Eve?

useradd

The useradd command will let you add a new user easily from the command line:

    useradd <username>

This command adds the user, but without any extra options your user won’t have a password or a home directory.

You can use the -d option to set the home directory for the user. The -m option will force useradd to create the home directory. We’ll try creating a user account with those options, and then use the passwd command to set the password for the account. You can alternatively set a password using -p on the useradd command, but I prefer to set the password using passwd.

    sudo useradd -d /home/testuser -m testuser

    sudo passwd testuser

This will create the user named testuser and give them their own home directory in /home/testuser. The files in the new home directory are copied from the /etc/skel folder, which contains default home directory files. If you wanted to set default values for your users, you would do so by modifying or adding files in that directory. If we take a look at the new home directory for the user:

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is your question....?

Revision history for this message
Enrico Rosina (e-rosina) said :
#2

Hello,

Personally I avoided the command line, I think it is easy with this menu:

(sorry I must translate the terms in English because I have them in French, so they may be slightly different):

System => Administration => Users and Groups. There you find an "add user" button, more friendly than your command line.

I added easily all my family names, so each one has an account. Which comes after less easy, is where to put the family album so everyone has the rights to handle it? I tried to put all users in the same group, but that meant to give access to each user to the personal folder of everybody :-) Not that we care much, because we are confident to each other, but this system is not so privacy-friendly. So I finished creating a fake user, put the family album in his home folder, and changed the access rights of this folder...

Have a nice try
enrico

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the question? This is a questions forum where people post their issues and people reply...

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

I have moved the user guide links to this location:

https://help.ubuntu.com/community/ExternalGuides

Can you help with this problem?

Provide an answer of your own, or ask GDMino for more information if necessary.

To post a message you must log in.