Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple explanation about /etc/passwd thx ... 1

Status
Not open for further replies.

h3nd

Programmer
Jul 1, 2006
147
AU
Hi guys,

Just wondering in my file /etc/passwd, I read this line ...
Code:
mars_ftp:x:36000:361:_WBC_Functional Logon:/riskdata/prod/mars_ftp:/bin/bash
algoadm:x:36001:361:_WBC_Functional Logon:/opt/sw/algo:/bin/bash

as ":" is the delimiter, could you guys tell me what each field means ?

I know the first field is your login id, and the 4th field is your group id, correct me if I'm wrong. And what about the other fields ?

Thx guys

 
Hi

[ul]
[li]Username, up to 8 characters. Case-sensitive, usually all lowercase[/li]
[li]An "x" in the password field. Passwords are stored in the ``/etc/shadow'' file.[/li]
[li]Numeric user id. This is assigned by the ``adduser'' script. Unix uses this field, plus the following group field, to identify which files belong to the user.[/li]
[li]Numeric group id. Red Hat uses group id's in a fairly unique manner for enhanced file security. Usually the group id will match the user id.[/li]
[li]Full name of user. I'm not sure what the maximum length for this field is, but try to keep it reasonable (under 30 characters).[/li]
[li]User's home directory. Usually /home/username (eg. /home/smithj). All user's personal files, web pages, mail forwarding, etc. will be stored here.[/li]
[li]User's "shell account". Often set to ``/bin/bash'' to provide access to the bash shell (my personal favorite shell).[/li]
[/ul]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top