The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
search for the contents in many file and print that file using shell script cdfd123 Shell Programming and Scripting 3 10-07-2007 07:17 PM
Creating file contents using contents of another file ReV Shell Programming and Scripting 21 02-24-2006 06:25 AM
/etc/passwd file s_mad010 Security 4 12-06-2005 04:14 AM
Reading specific contents from a file and appending it to another file dnicky Shell Programming and Scripting 5 10-04-2005 02:45 AM
ls contents of a file douknownam Shell Programming and Scripting 7 06-14-2004 06:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2004
Registered User
 

Join Date: Jun 2004
Location: Brea CA
Posts: 24
Stumble this Post!
Question passwd file contents

Hi All

Here is a the enty for my user on a UNIX from the /etc/passwd file, i want to know what each field denotes where can i get to know it?

kankipas:!:275:1:Swaraj Kankipati - Brea PTX Support:/home/kankipas:/usr/bin/ksh

If anyone could tell me that would be great

Thanks
Swaraj
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-06-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,844
Stumble this Post!
It can be different - Darwin and OS X have ten fields for example.

To find what is on your system start with
Code:
man passwd
a colon separates the fields.
Reply With Quote
  #3 (permalink)  
Old 07-06-2004
Registered User
 

Join Date: Jun 2004
Location: Brea CA
Posts: 24
Stumble this Post!
Hello

Thanks for the reply, i had gone through the manpage for the passwd command which is for changing passwords for a user, but i could not find much information as i am looking for, this is the only line which describes about the /etc/passwd file

/etc/passwd Contains user IDs, user names, home directories, login shell, and finger information.

But i want to know in order what each part denotes for an entry in the /etc/passwd file.

I am using AIX 5.1 Operating System.

Thanks
Swaraj
Reply With Quote
  #4 (permalink)  
Old 07-06-2004
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Stumble this Post!
There is more than one passwd man page. On my OSX system, I can get to the file description page with "man 5 passwd". Try "man -k passwd", which will list the different man pages containing "passwd", along with the chapter number.

If "man 5 passwd" doesn't work (I think Sun systems have a different way of selecting the chapter, for example), try "man man" to find out how to specify the chapter.

Hope that helps...
Reply With Quote
  #5 (permalink)  
Old 07-06-2004
milhan's Avatar
Registered User
 

Join Date: Oct 2002
Location: /home
Posts: 121
Stumble this Post!
Re: passwd file contents

Quote:
kankipas:!:275:1:Swaraj Kankipati - Brea PTX Support:/home/kankipas:/usr/bin/ksh
as mentioned : seperates each field, so there are 7 fields...

kankipas = is your login name on system
! = stands for your password, it's encrypted, and contained in another file
275 = is your uid(user id) - if you type < id > on command line you'll get this same value as well.
1 = is your gid(primary group id)
Swaraj Kankipati - Brea PTX Support = is your full name on the system
/home/kankipas = is your home directory on the system
/usr/bin/ksh = is your login shell(the interactive program which runs when you login) - korn shell in this case...

I hope this helps
Reply With Quote
  #6 (permalink)  
Old 07-07-2004
Registered User
 

Join Date: Jun 2004
Location: Brea CA
Posts: 24
Stumble this Post!
Thanks a lot Milhan, that was the perfect reply i was looking for

Swaraj
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0