The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/etc/shadow file.... avcert1998 UNIX for Advanced & Expert Users 6 01-18-2008 03:40 PM
*LK* in /etc/shadow file vikashtulsiyan SUN Solaris 5 12-23-2007 11:50 PM
Shadow file definition narik007 SUN Solaris 1 03-13-2006 11:15 AM
shadow file arunkumar_mca UNIX for Dummies Questions & Answers 3 12-31-2004 11:55 PM
Shadow file permissions dman110168 UNIX for Dummies Questions & Answers 1 12-13-2004 01:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-05-2005
jbashir jbashir is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 1
shadow file

what does 'x' in the encrypted password field in /etc/shaodw file represent?
  #2 (permalink)  
Old 08-05-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
jmcnamar:x:10607:100:Jim Mcnamara,,222 222-1234.......

The :x: part in this record is the "password" field. This is /etc/passwd
/etc/shadow has the encrypted password and the salt.
  #3 (permalink)  
Old 08-05-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Shadow file shouldn't have a 'x'.

Each entry in the shadow file has the form (use man -s4 shadow for man page):

Code:
       username:password:lastchg:min:max:warn:inactive:expire:flag

The fields are defined as follows:

username The user's login name (UID).

password A 13-character encrypted password for the user,
a lock string to indicate that the login is not
accessible, or no string, which shows that there
is no password for the login.
lastchg The number of days between January 1, 1970, and
the date that the password was last modified.

min The minimum number of days required between
password changes.

max The maximum number of days the password is
valid.

warn The number of days before password expires that
the user is warned.

inactive The number of days of inactivity allowed for
that user.

expire An absolute date specifying when the login may
no longer be used.

flag Reserved for future use, set to zero. Currently
not used.

For the /etc/passwd file - see man -s4 passwd
password is an empty field. The encrypted password
for the user is in the corresponding entry
in the /etc/shadow file. pwconv(1M) relies
on a special value of 'x' in the password
field of /etc/passwd. If this value of 'x'
exists in the password field of
/etc/passwd, this indicates that the pass-
word for the user is already in /etc/shadow
and should not be modified.
  #4 (permalink)  
Old 03-14-2006
narik007 narik007 is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 3
Thumbs up Thanks RTM

Your help is much appreciated. Could you tell me in which file will you find the settings showing account lockout after XXX invalid attempts.

Also, were do you find password compexity being enabled?

Thanks
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0