Originally posted by: leolaw
Hey guys, I need your help here:
I have just installed Mandriva Linux 10.1, but once it pops up the login page, it doesn't let me to type in the "username", but just the password box. So I assume that it requires me to enter the root password that I have created during installation, but it has no avail. I didn't added any user into the system during installation, so I am wondering what should I type in the "password" box.
Thx
7.1.1 Creating a User Account
To create a user account, you use the adduser command, which has the form:
adduser
userid
where userid specifies the name of the user account that you want to create. The command prompts you for the information needed to create the account.
Here's a typical example of using the command, which creates a user account named newbie:
debian:~#
adduser newbie
Adding user newbie...
Adding new group newbie (1001).
Adding new user newbie (1001) with group newbie.
Creating home directory /home/newbie.
Copying files from /etc/skel
Changing password for newbie
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Re-enter new password:
Password changed.
Changing the user information for newbie
Enter the new value, or press return for the default
Full Name []:
Newbie Dewbie
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [y/n]
y
debian:~#
Notice that the lines where the password was typed were overwritten by the subsequent lines. Moreover, for security, passwords are not echoed to the console as they are typed.
Notice also that several of the information fields were omitted - for example, Room Number. You can specify such information if you think it may be useful, but the system makes no use of the information and doesn't require you to provide it.
The similarly named useradd command also creates a user account, but does not prompt you for the password or other information.
When the command establishes a user account, it creates a home directory for the user. In the previous example, the command would have created the directory /home/newbie. It also places several configuration files in the home directory, copying them from the directory /etc/skel. These files generally have names beginning with the dot (.) character, so they are hidden from an ordinary ls command. Use the -a argument of ls to list the names of the files. The files are generally ordinary text files, which you can view with a text editor, such as ae. By modifying the contents of such files, you can control the operation of the associated application. For example, the .bashrc file controls the operation of the BASH shell, which you'll learn more about in Chapter 13, Conquering the BASH Shell.
Google search: " Command add user linux "
pcgeek11