LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2010, 11:32 AM   #1
lensem
Member
 
Registered: Apr 2008
Location: Orlando, Fl
Posts: 52

Rep: Reputation: 15
/etc/shadow File Fields ??


We are running Red Hat Linux 5.5 and I've noticed some differences in the /etc/shadow file on some of our servers...

On some of the entries, fields 5, 6, and 7 are coded as I would expect, as this is what is in /etc/login.defs...
user1:KMcidSND/gLdw:14873:0:90:7:7::

But on some users, there is nothing coded in these fields, as in following...
user2:KMcidSND/gLdw:14684::::::

If these fields are not defined, what do they default to ??
 
Old 10-15-2010, 12:00 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
http://tldp.org/LDP/lame/LAME/linux-...e-formats.html
 
Old 10-16-2010, 07:13 AM   #3
lensem
Member
 
Registered: Apr 2008
Location: Orlando, Fl
Posts: 52

Original Poster
Rep: Reputation: 15
I understand what each field in the /etc/shadow file means...

My question is, If fields 5 and 6 are blank, what does it default to ?? is it the same as coding 99999 ??
 
Old 10-16-2010, 07:39 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by lensem View Post
I understand what each field in the /etc/shadow file means...
If you do then you can answer your question by selecting one user account who has a "99999" field value and one that has an empty value, run 'chage -l' on the two accounts and compare output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set getpwnam to read a file instead /etc/shadow file ZAMO Linux - General 1 02-02-2009 08:25 AM
parsing fields of a file sang_froid Programming 2 10-26-2006 02:16 AM
cut fields in a file christina_rules Linux - Newbie 12 07-15-2006 10:00 AM
Manipulating Fields Of Flat File Prasun1 General 10 09-29-2005 11:42 AM
Displaying fields in wtmp file? eclapton1 Programming 1 06-26-2004 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration