The gecos field, or
GECOS field is a field in each record in the
/etc/passwd
passwd is a command on Unix, Plan 9, Inferno, and most Unix-like operating systems used to change a user's password. The password entered by the user is run through a key derivation function to create a hashed version of the new password, whi ...
file on
Unix
Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
and similar
operating system
An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
s. On UNIX, it is the 5th of 7 fields in a record.
It is typically used to record general information about the account or its user(s) such as their real name and phone number.
Format
The typical format for the GECOS field is a comma-delimited list with this order:
#User's
full name (or application name, if the account is for a program)
#Building and room number or contact person
#Office
telephone number
A telephone number is a sequence of digits assigned to a landline telephone subscriber station connected to a telephone line or to a wireless electronic telephony device, such as a radio telephone or a mobile telephone, or to other devices f ...
#Home telephone number
#Any other contact information (
pager
A pager (also known as a beeper or bleeper) is a wireless telecommunications device that receives and displays alphanumeric or voice messages. One-way pagers can only receive messages, while response pagers and two-way pagers can also acknowl ...
number,
fax, external e-mail address, etc.)
In most UNIX systems non-root users can change their own information using the ''chfn'' or ''chsh'' command.
History
Some early Unix systems at
Bell Labs
Nokia Bell Labs, originally named Bell Telephone Laboratories (1925–1984),
then AT&T Bell Laboratories (1984–1996)
and Bell Labs Innovations (1996–2007),
is an American industrial research and scientific development company owned by mult ...
used
GECOS machines for
print spooling and various other services, so this field was added to carry information on a user's GECOS identity.
Other uses
On
Internet Relay Chat
Internet Relay Chat (IRC) is a text-based chat system for instant messaging. IRC is designed for group communication in discussion forums, called '' channels'', but also allows one-on-one communication via private messages as well as chat a ...
(IRC), the real name field is sometimes referred to as the gecos field. IRC clients are required to supply this field when connecting.
Hexchat, an
X-Chat fork, defaults to 'realname', TalkSoup.app on
GNUstep
GNUstep is a free software implementation of the Cocoa (formerly OpenStep) Objective-C frameworks, widget toolkit, and application development tools for Unix-like operating systems and Microsoft Windows. It is part of the GNU Project.
GNUst ...
defaults to 'John Doe', and
irssi reads the operating system user's full name, replacing it with 'unknown' if not defined. Some IRC clients use this field for advertising; for example,
ZNC
ZNC is an IRC network bouncer or BNC. It can detach the client from the actual IRC server, and also from selected channels. Multiple clients from different locations can connect to a single ZNC account simultaneously and therefore appear under t ...
defaulted to "Got ZNC?", but changed it to "RealName = " to match its configuration syntax in 2015.
See also
*
General Comprehensive Operating System
General Comprehensive Operating System (GCOS, ; originally GECOS, General Electric Comprehensive Operating Supervisor) is a family of operating systems oriented toward the 36-bit GE/Honeywell mainframe computers.
The original version of GCOS wa ...
References
{{DEFAULTSORT:Gecos Field
Unix