The concepts of users and groups are extremely important, because they will have a direct influence on all other ideas this chapter will introduce.
Linux is a true multiuser system, and in order to use your GNU/Linux machine, you must have an account on the machine. When you created a user during installation, you actually created a user account. In case you don't remember, you were prompted for the following items:
The two important parameters here are the login name (commonly abbreviated to login) and password. You must have these in order to access the system.
When you create a user, a default group is also created . As we will see later, groups are useful when you have to share files between several people. A group may contain as many users as you wish, and it is very common to see such a separation in large systems. For example, in a university, you could have one group per department, another group for teachers, and so on. The opposite is also true: a user can be a member of one or more groups, with a maximum of thirty- two. A math teacher, for example, can be a member of the teachers' group and also of his beloved math students' group.
Now that we've covered the background information, let's look at how to actually log in.
If you chose to have X automatically start on boot-up, your startup screen will look similar to Figure 1.1.
In order to login, you must first select your account from the list. A new dialog will be displayed, prompting you for your password . Note that you will have to type in your password blindly, because the characters will be echoed onscreen as stars * instead of the characters you typed in the password field. You can also choose your session type (window manager). Once you're ready, press the button.
If you are in console or “text” mode, your screen will look similar to Figure 1.2.
To login, enter your login name at the prompt and press Enter. Next, the login program (called, login) will display a prompt and will wait for your password to be entered. Like the graphic mode login, the console login will not echo the characters you're typing to the screen.
Note that you can login several times with the same account on additional consoles and under X. Each session you open is independent from others, and it is even possible to have several X sessions opened concurrently. By default, Mandrake Linux has six virtual consoles in addition to the one reserved for the graphical interface. You can switch to any of them by pressing the key sequence Ctrl-Alt-F<n>, where <n> is the number of the console that you want to switch to. By default, the graphical interface is on console number 7. So, to switch to the second console, you would simultaneously press Ctrl, Alt and the F2 keys.
During installation, DrakX also prompted you for the password of a very special user: root . root is the system administrator, which will most likely be yourself. For your system's security, it is very important that the root account always be protected with a good password!
If you regularly login as root, it is very easy to make a mistake which can turn your system unusable – one single mistake can do it. In particular, if you have not set a password for the root account, then any user can alter any part of your system (even other operating systems on your machine!). Obviously, this is not a good idea.
It is worth mentioning that internally, the system does not identify you with your login name. Instead, it uses a unique number assigned to the name: the User ID (UID for short) . Similarly, every group is identified by its Group ID ( GID) and not its name.