ACE-P-ALE1-04 practice question 22 of 35

Where did the GECOS field in /etc/passwd come from?

Full set: 100 questions
Answer options
A: Bell Labs DHCP lease tracking
B: Payroll name and address info
C: Bell Labs Print Service Correct answer
D: Parking space assignments at AT&T
Correct Answer:
C. Bell Labs Print Service
Explanation

The GECOS field in the /etc/passwd file originated in the early days of Unix at Bell Labs. Unix systems were connected to a General Electric 635 mainframe that ran the General Electric Comprehensive Operating Supervisor (GECOS) operating system. This mainframe was used for resource-intensive tasks, most notably as a print spooler. The GECOS field was added to the Unix password file to store the user's identification information (full name, office, etc.) required for submitting batch jobs, such as print jobs, to the GECOS machine. This ensured that the physical output could be routed back to the correct user.

Why Incorrect

A. Bell Labs DHCP lease tracking: DHCP was developed in the 1990s, decades after the GECOS field was established in the early 1970s.
B. Payroll name and address info: While the field contained the user's name, its specific purpose was for routing computer job output, not for the payroll system.
D. Parking space assignments at AT&T: This is factually incorrect. The field's origin is directly tied to the operational needs of early computer systems at Bell Labs.

References

1. Salus, Peter H. (1994). A Quarter Century of Unix. Addison-Wesley. p. 94. ISBN 0-201-54777-5. The book states, "The fifth field is the GECOS field. At Bell Labs, there was a GECOS machine that handled, among other things, the print queue. The GECOS field was the user's name, etc., on that machine."

2. Libes, D., & Ressler, S. (1989). Life with UNIX: A Guide for Everyone. Prentice Hall. p. 19. ISBN 978-0135366578. "The GECOS field is named after the General Electric Comprehensive Operating System. At Bell Labs, printouts were spooled to a GECOS machine. This field was used to store the information that appeared on the banner page of the printout."

3. Raymond, Eric S. (Ed.). (2003). The Art of UNIX Programming. Addison-Wesley. Chapter 10, Section 10.1.2. "The GECOS field... It was originally used on an early UNIX system to store the user's login information for a GECOS mainframe that was used as a print spooler."

Scroll to Top