Using Linux:Managing Users and Groups
-->
Previous
Table of Contents
Next
Adding a User with usercfg
How to add a new user
1. Click the top button labeled Users to bring the user list back. The list of buttons on the bottom two rows show which functions are available. click the Add button to bring up a new Edit User Definition dialog box, as shown in Figure 25.3.
Figure 25.3 The Edit User Definition dialog box. Notice the defaults set by the system.
usercfg will automatically fill in the UID and GID for you. In our example, that is UID 514 and GID 514. In addition, usercfg fills in the Full Name field with a default string Red Hat Linux User. Finally, usercfg gives you the default shell setting to /bin/bash.
2. Select a new login name. The login name should not be greater than eight characters. This should consist of only letters and numbers.
3. Click the down arrow button next to the password entry. Select the second option, Change. This will bring up a dialog box like the one shown in Figure 25.4.
Figure 25.4 Change the entry.
4. Enter the password you want to assign to the user and press Enter. The dialog box will then prompt you to verify the password by reentering it. (The system wants to be sure that you havent made a typing mistake.) Enter the password again and press Enter. The first line of the dialog box will show the encrypted version of the string as in Figure 25.5.
Figure 25.5 Click the Done button to make that the password entry.
5. usercfg will have already filled in a UID and GID for you. If you want the user to be part of an existing group, provide that group number instead of the suggested one. Of course, you can always add that user to the group by editing the groups file, as you will see shortly.
6. In the Full Name entry, fill in the complete name of the user. If the user wants to go by an alias, for example Steveoid, enter the alias here.
7. The entries for Office, Office Phone, and Home Phone are optional. They are only used when the user is queried by other people using the finger command.
8. In the Home Directory entry, specify where the users home directory will be. By default, the home directory will be /home/login where login is the users login name. For most systems, this is acceptable and can be left alone. If you maintain a different home directory structure, replace this entry with the appropriate directory.
9. In the default shell entry, specify which shell the user will use when he logs in. The default shell is /bin/bash, which is fine for most users. If the user wants a different shell, you can click the down arrow button to see a listing of available shells based on the contents of the /etc/shells file. If you want to give the user a shell not listed, simply erase the entry and enter whatever shell you want to assign them.
10. After you have completed the dialog box, click the Done button. You should see your new entry in the main User Configurator window.
The difference between login and usernameYou will often find that people use the terms login and username interchangeably. Within most contexts, they mean the same thing.
Password information
Accounts should always have passwords. It is bad practice to leave accounts open to login without passwords, especially if your machine attaches to a network in any way. Furthermore, you need to use a good passwordone that cannot be guessed using any of the automated password guessing programs available on the Internet.
A good password is at least six characters long, contains a mixture of uppercase letters, lowercase letters, punctuation, and numbers. One good technique is to pick a phrase and use the first letter of each word in the phrase. This makes the password easy to remember but difficult to crack. For example, Always remember, Its a great big disco world would be ArIagbdw.
View/Edit Users
After a user has been added, you might find it necessary to go back and edit his information. To bring up the Edit User Definition dialog box, follow these steps:
Editing user settings
1. Either double-click the user or click once on the user and click the View/Edit button at the bottom of the window. The Edit User Definition window looks just like the Add User window without the option to change the login name (see Figure 25.6).
Figure 25.6 The Edit User Definition dialog box. Note the striking similarity to the Add User dialog box.
2. Each field containing the users current information will be available for you to edit, except for the login name. You may change any of the other fields as you deem necessary.
3. When you have finished making changes, click the Done button at the bottom of the active window. This will commit your changes to the system.
Dont change the User Identification (UID)
As mentioned earlier, you cannot change a users login name in the View/Edit dialog box. You have the option, however, to change the User ID (UID). DONT. Changing a users ID number will cause a great deal of confusion because Linux associates file ownership to UIDs, not login names. Thus, changing a persons UID will cause him to lose ownership of all of his files.
If for whatever reason you need to do this, be sure you read the section later in this chapter on how to use the chown command to reassign ownership to files.
Previous
Table of Contents
Next
Wyszukiwarka
Podobne podstrony:
407 E5AT03K1 Narzedziedo podtrzymywania Obudowylozyska polosi Nieznany407 B3FG015KP0 Demontaz Montaz Zacisk przedniego hamulca (Konstrukcja TRW podwojny tloczek)407 E5ABFCP0 Prezentacja Zestaw do diagnostyki urzadzen wykonawczych pompy H 1613 2 Nieznany407 B3BG2AK1 Demontaz montaz Drazek stabilizatora przedni Nieznany407 B1FI01V1 Oprozniane poprzez odsysanie (Silnik ) Nieznany399 404407,17,artykul04 (404)407 (B2007) Wycena rzeczowego majątku trwałego w bilansie407 B1HG7HK1 Demontaz montaz Wspolny kolektor wtrysku paliwa pod wysokim cisnieniem NieznanyNuestro Circulo 407 Hans Kmoch407 409407 B3FG45K1 Demontaz montaz pompa prozniowa Nieznany407 wymiana ozrzadu benzynowewięcej podobnych podstron