passwd file contents


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers passwd file contents
# 1  
Old 07-06-2004
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
# 2  
Old 07-06-2004
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.
# 3  
Old 07-06-2004
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
# 4  
Old 07-06-2004
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...
# 5  
Old 07-07-2004
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
# 6  
Old 07-07-2004
Thanks a lot Milhan, that was the perfect reply i was looking for

Swaraj
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Shell Programming and Scripting

Folder contents getting appended as strings while redirecting file contents to a variable

Hi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/' Resource List : <br> *************************** 1. row ***************************<br> ... (2 Replies)
Discussion started by: vivek d r
2 Replies

3. Shell Programming and Scripting

Replace partial contents of file with contents read from other file

Hi, I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file. i am able to... (2 Replies)
Discussion started by: seeki
2 Replies

4. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies

5. Shell Programming and Scripting

I want to delete the contents of a file which are matching with contents of other file

Hi, I want to delete the contents of a file which are matching with contents of other file in shell scripting. Ex. file1 sheel,sumit,1,2,3,4,5,6,7,8 sumit,rana,2,3,4,5,6,7,8,9 grade,pass,2,3,4,5,6,232,1,1 name,sur,33,1,4,12,3,5,6,8 sheel,pass,2,3,4,5,6,232,1,1 File2... (3 Replies)
Discussion started by: ranasheel2000
3 Replies

6. UNIX for Dummies Questions & Answers

help with passwd file

Not an unix expert, I read a few pages on the web about passwd files, but I didn't find the answers I need about the last 8 lines of the passwd file I'm taking a look at. I'm assuming their shortcuts to another file that may have the actual usernames of users on the system. Please, any help... (1 Reply)
Discussion started by: fusion31
1 Replies

7. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

8. UNIX for Dummies Questions & Answers

compare 2 file contents , if same delete 2nd file contents

Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents..... I try with "diff"...... but confusion how to use "diff" with if ---else Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies

9. Shell Programming and Scripting

Creating file contents using contents of another file

Hi, I am not sure how to start doing this so I hope to get some advice as to how to start. I have 2 files. The source file contains data that I needed is in columns delimited by ";". For example, in this format: "CONTINENT","COUNTRY","CITY","ID" "asia","japan","tokyo","123"... (21 Replies)
Discussion started by: ReV
21 Replies

10. Cybersecurity

/etc/passwd file

hi Does anyone anyone know what the last line of a unix user passwd file signifes? Mine shows "+:::::" best (4 Replies)
Discussion started by: s_mad010
4 Replies
Login or Register to Ask a Question