407 411




Using Linux:Managing Users and Groups






-->















Previous
Table of Contents
Next




Locking a User
There eventually will come a time when a user on your system has become so troublesome that you need to lock him out of the system until you’ve had a chance to talk with him and set him straight. For example, you’ve just found out that the user vector has formed the Internet Terrorist Task Force and is attacking other sites. To lock him out, do the following:

Locking out a user

1.  At the top of the usercfg window, click the Users button. This should bring up the list of users on the system.
2.  Click once on Vector’s entry.
3.  Click the Lock button at the bottom of the usercfg window. This will bring up the Archive User window, as shown in Figure 25.7.

Figure 25.7  Open the Archive User window.
4.  The first choice is what you want to do with Vector’s home directory. The three options are to either ignore it, archive and compress it, or delete it altogether. Ignoring it will leave his home directory intact. Archiving and compressing will cause his home directory to be combined into one large file and compressed with the tar and gzip commands. (Together, they work similarly to the way WinZip works under Windows.) The last option to is delete his files altogether. In most instances, you will only want to disallow access to your system until you’ve had a chance to talk to your user about inappropriate behavior; thus, select the first option, Ignore.
5.  The second option is whether you want to delete the user’s undelivered mail. Unless you have a specific reason to remove it, leave it alone.
6.  The last option is whether you want to change the ownership of all the user’s files to the user nobody. In most instances, you will not want to do so. Select the option accordingly.
7.  Click Done. Another dialog box will appear warning you that locking out a user will cause any changes made so far to be written to disk. click Really Archive if you want to proceed; otherwise, you can cancel the operation.

After the home directory is dealt with, the password entry is locked by placing an asterisk character in it, thereby preventing the user from logging in.

Unlocking a User
After you’ve had a chance to talk with your user and you feel that he should have access to the system once again, you will want to unlock his account. To do so, follow these directions:

Unlocking a user

1.  Click once on the user’s login name in the User Configurator. This will highlight his entry.
2.  Click the Unlock button at the bottom of the window. A dialog box will inform you that unlocking a user will cause any changes made so far to be written to disk. If you are sure that you want to unlock the account, click Really Unlock; otherwise, click Cancel.

With the home directory back in place, the password entry will have the asterisk character removed, thereby allowing him to enter the system.

Removing a User
Occasionally, you will need to remove a user from the system. To remove the user vector from the system, follow these directions:

Removing a user

1.  Click vector’s login name in the User Configurator dialog box. This will highlight his entry.
2.  Click the Remove button at the bottom of the User Configurator dialog box. This will bring up the Delete User dialog box, as shown in Figure 25.8.

Figure 25.8  The Delete User dialog box. Note the similarity to the Lock User dialog box shown in the preceding section.
The menu options in this window are identical to the ones in the Lock User window. Here, however, you will want to take more drastic options if you’re looking to completely remove him from the system. In most cases, you do want all traces of him remoed.
3.  The first option allows you to specify how you want the contents of Vector’s home directory dealt with. You will probably want to remove it. click the Delete button.
4.  Click the button to delete vector’s mail spool.
5.  Click the button to Search for vector’s files to tell the system that you want to find files outside vector’s home directory that he owns (for example, files stored in /tmp).
6.  Click the radio button to Delete Them under the Search for vector’s Files button. This will cause any files owned by vector found outside vector’s home directory to be deleted.
7.  Just to be on the safe side, click the button to Mail a Report of Errors to Root.
8.  The Delete User window should look like Figure 25.9 for the options you have selected.

Figure 25.9  The Delete User dialog box after it has been filled out.
9.  Click Done to indicate that you are happy with the selections you have made. You will get a warning about this operation not being undoable. Click Really Delete if you are sure; otherwise, click Cancel.





Previous
Table of Contents
Next














Wyszukiwarka

Podobne podstrony:
407 E5AT03K1 Narzedziedo podtrzymywania Obudowylozyska polosi Nieznany
407 B3FG015KP0 Demontaz Montaz Zacisk przedniego hamulca (Konstrukcja TRW podwojny tloczek)
407 E5ABFCP0 Prezentacja Zestaw do diagnostyki urzadzen wykonawczych pompy H 1613 2 Nieznany
407 B3BG2AK1 Demontaz montaz Drazek stabilizatora przedni Nieznany
407 B1FI01V1 Oprozniane poprzez odsysanie (Silnik ) Nieznany
411 413
411 489
407,17,artykul
407 (B2007) Wycena rzeczowego majątku trwałego w bilansie
407 B1HG7HK1 Demontaz montaz Wspolny kolektor wtrysku paliwa pod wysokim cisnieniem Nieznany
Nuestro Circulo 407 Hans Kmoch
407 409
407 B3FG45K1 Demontaz montaz pompa prozniowa Nieznany
407 wymiana ozrzadu benzynowe
407 B3FG015MP0 Demontaz Montaz Klocki przednich hamulcow (Konstrukcja TRW podwojny tloczek)
407 B2GB0103P0 Momenty dokrecania Kola Nieznany

więcej podobnych podstron