| < Day Day Up > |
In this chapter, we reviewed some common
| < Day Day Up > |
| < Day Day Up > |
|
1. |
What is the biggest difference between Kate and KWrite? |
|
|
2. |
Kate is most like what Windows application? |
|
|
3. |
Which offers more graphics functionality, Windows Paint or Image Magick? |
|
|
4. |
Do you use the Print Screen button to do screen captures in KDE? |
|
|
5. |
What are sticky keys? |
|
|
6. |
What are bounce keys? |
|
Answers
|
1. |
KWrite has a spell checker. |
|
2. |
Notepad |
|
3. |
Image Magick |
|
4. |
No, you must use the screen capture utility. |
|
5. |
Sticky keys cause the machine to remember any key press for a few seconds and to put it with the
|
|
6. |
With bounce keys turned on, the software will ignore the second press of the same key if it occurs in less than a specified number of seconds. |
| < Day Day Up > |
| < Day Day Up > |
By this point in this book you should be getting quite comfortable with Linux and with the KDE graphical interface. You have installed Linux, configured Linux, and found out how to get on the Internet, and you have been introduced to several basic but highly useful applications. You should now be able to accomplish word processing, spreadsheet applications, use a calculator, and even do simple graphics with Linux. At this point you should be a basically competent Linux user. However, Linux is not always used for a single-
This chapter is aimed at showing you how to use Linux as a server, perhaps for a small office, and how to administer that server via the KDE graphical interface. We will explore how to add users and groups, how to schedule tasks, and how to monitor the system. All of this will be done with easy-to-use point-and-click applications (in a later chapter, you will see how to perform many of these
| < Day Day Up > |
| < Day Day Up > |
The purpose of a server is to provide services, files, or data to one or more people. In the information technology field, people who use a computer or system are referred to simply as
users
. This term is derived from the
Many offices, even small ones, use a server to store information. That way, all the authorized
With the Linux operating system, each time a user logs on, the settings in his user account determine what files and directories he has access to and what ones he does not. The place to start managing users and groups is with user accounts. Using the KDE interface, you would go to System Settings and select Users and Groups. You should then see a screen that looks very much like the one in Figure 6.1.
Figure 6.1:
Red Hat User Manager.
The options on the toolbar should be
Let’s add a user just to get the feel of how it’s done. You begin by clicking the Add User button on the toolbar, or selecting File and then choosing Add User from the drop-down menu. Regardless of which method you use, you should then see something very much like what is shown in Figure 6.2.
Figure 6.2:
Create New User.
The first two fields are obvious. In the first field, you simply enter a username. What you select for a username is a matter of personal preference, but many organizations use the person’s first initial and last
If you want your system to be secure, there are a few guidelines regarding passwords you must follow. To begin with, there are programs
The next step is to check whether or not you want a home directory for this user. In most cases, the answer will be yes. This is the default directory that user will have access to when he logs on. It is where he will store files and data. All home directories are subdirectories of the directory home . It is a common practice to name the user’s home directory the same as the username. In fact, this user utility will by default create a home directory name that is the same as the username. So, for example, the default home directory for the author would be /home/ceasttom . If you do not want to use the default name, then you will have to manually change it. You do that by typing in the alternative directory you want to use. You then have two check boxes that need to be unchecked. One is labeled “Create a private group for the user,” and the other is labeled “Specify user ID manually.” The first setting would create a private group for your user and place him in it (more about groups in just a bit). The other would require you, the administrator, to create a unique user ID number for that user. That number is how the Linux system recognizes the person. Usernames are for people to read and understand. If you choose to do this manually, you will need to keep track of all user IDs and ensure that you never try to use the same one twice. It is far simpler to let Linux handle that.
There is one more item on the Create New User screen that we purposely left to last. That is the Login Shell setting. Most users will want to use the bash shell, which you may recall is the most commonly used Linux shell and is selected by default. However, you can select from a list of
Figure 6.3A:
A new user account.
If you restart the machine and log on with this username and password, you will notice a few changes. The first is that your starting directory would be that user’s home directory rather than the root directory. The only reason why root is your current starting directory is because you have logged on as root. The second change would be that you would find that when you attempted to use many administration functions, you would be asked to supply a superuser password. Superuser is a term in Linux that denotes someone logged on to a regular user account who is using administrative privileges. To do this, you must have the root password. In short, superuser mode is being logged in as a normal user but using the root password to have temporary access to root privileges.
You have now established a user account, but what does this user have access to? The answer is, not much. At this point he will have access to his home directory and not much else. In Linux, users are put into groups, and those groups are assigned access to certain resources. The access rights a user has depends entirely on what groups that user belongs to. When you double-click on a user account (or if you
The second tab, Account
Figure 6.3B:
The second tab of the User Properties page.
The third tab contains information about a user’s password. One important security precaution you can take is to require that users change their passwords periodically. In Figure 6.3c you can see the screen where you would set the expiration date of the account if you wanted to. The user in question will get a warning that his password is about to expire every time he logs in for five days
Figure 6.3C:
Password settings.
The fourth tab of the User Properties screen is where we establish the groups a user belongs to. Select this tab and you will see the Group Properties screen, which is shown in Figure 6.3d. You can see a long list of groups; some may make sense to you, and others will make more sense as you move forward in this book. There are several groups listed, and some may seem quite obscure to you. One that will probably make sense to you is the
adm
group. This group is for administrators. If you add a user to this group, that user will have some administration privileges. Contrary to what you might think, though, this group does not have the unlimited administration privileges of the root user. To practice, you may want to add the user you just created to the
adm
group. You can see that one of the
Figure 6.3D:
Adding a user to groups.
| Note |
Apache is the name of the Web server that ships with Red Hat Linux. Using Apache is covered in a later chapter. You may be interested in knowing that Apache runs as a daemon. A daemon is a program that runs in the background and is not visible to the user. In Windows, such programs are referred to as services. |
In some cases you will want to create your own new groups. This is just as easy as creating new user accounts. To add a new group, click on the Add Group button on the toolbar or select File from the drop-down menu and select Add Group. You will then be prompted to assign the group a name, as shown in Figure 6.4. It usually is a good idea to use logical names for your groups, names that
Figure 6.4:
Adding a group.
You will need to click on the Groups tab to see the new group you have added, as well as any groups that were previously added. Once you do that, you can click once on your group to highlight it and then press the Properties button in the toolbar. You can also select File from the drop-down menu and choose Properties. Whatever method you use to get there, you will finally
Figure 6.5:
Group Properties.
You will notice that, in addition to the user you added, there are a number of users already on the list. Some of these users are actually applications. Many applications run as daemons. We previously said that a daemon is much like a service in Windows. Whether it is referred to as a daemon or a service, it is
Figure 6.6:
Adding users to a group.
| < Day Day Up > |