UNIX Hints & Hacks |
|||||||||||||||||||||||||||||||||||||
Chapter 5: Account Management |
|
||||||||||||||||||||||||||||||||||||
|
The fifth field in the password file, not the name of a baseball playing field.
Flavors: All
This is often referred to as the comments field. The GECOS field holds all the necessary contact information on a user. Each piece of information entered is delimited by a comma. The comma is an optional character that has been somewhat considered the standard; there isn't any well-defined syntax for this field yet. When the field is full of information it contains the following:
Not all the information is required in the password file. In most environments you see the user's full name entered. If an application has an account on the system, provide necessary information in the field that helps an administrator contact the person if there is a problem with their application. Any part of the field can be used to provide information that helps in the future to administrate the account. Here are some useful ways to use this field.
root:NqM5kgsU0o./6:0:0:Root - Steve Mitchel,Bldg04,x5555:/root:/bin/tcsh root-pt:4tK2yr/5.UWtI:0:0:Root - Paul Thomas,Bldg37,x1212:/root:/bin/tcsh ftp:*:404:1:FTP Admin,Markus Martin,x4744:/home/ftp:/bin/bash apache:ALlDn9wGSFY3Y:4000:40:Web GOD, Bill McAdam,x2010:/usr/local/httpd:/bin/tc gtromero:Gjask2j340ff:100:12:Gloria Romero,x0413:/home/gtromero:/bin/bash bxredmon:FC6XUtvRxVcWU:222:20:Bill Redmond:/home/bxredmond:/bin/csh
General Electric had a system that ran GECOS (General Electric Comprehensive Operating System). The original intent of this field was to hold the login information for batch jobs that were sent to the GECOS system.
If you can keep all the information filled in and up to date, it provides a useful tool in the future. UNIX administrators are often the last to know about anything, including when employees exit the company. One thing that helps keep the list current and is good PR for you as an administrator is to call one person in the password file each and every day. I know a three-minute call is a lot to ask, because we don't get much time to take proactive steps. In large installations though, a three-minute phone call can tell you a wealth of information.
In some instances these simple questions can make you look like a hero in the eyes of the users. Sometimes a new user might have acquired the machine and didn't even know that there was help for them available. All because you wanted to update the information. I know in the end it sounds like you created more work for yourself, but the gratitude can outweigh the workload sometimes.
UNIX Hints & Hacks |
|||||||||||||||||||||||||||||||||||||
Chapter 5: Account Management |
|
||||||||||||||||||||||||||||||||||||
|
© Copyright Macmillan USA. All rights reserved.