LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-29-2010, 03:47 PM   #1
enelson79
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Why does RHEL put !! in shadow to disable an account instead of just !


I noticed something odd today throwing together a quick script to search for locked accounts. RHEL will create a user with a single ! in the password field of shadow , but if you lock an account using passwd -l or usermod it will modify the password field to !!<previous string>. The other linux distros I deal with ( ubuntu , SLES 9,10 ) modify shadow in the more 'standard' way using !<previous string> .

Does anyone have a good explanation for this? It wasn't difficult to work around but if there is a legit reason I'd like to know!

Thanks!
 
Old 07-29-2010, 05:27 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
According to Wikipedia:

# salt and hashed password OR a status exception value e.g:

* "NP" or "!" or null - No password, the account has no password.
* "LK" or "*" - the account is Locked, user will be unable to log-in
* "!!" - the password has expired

HTH

Forrest
 
  


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
Problem when disable shadow password op_ujet Linux - Enterprise 0 10-25-2007 03:45 AM
OpenLDAP, nss_ldap, pam_ldap and shadow account info pshinpaugh Linux - General 2 08-16-2004 08:13 AM
simply put, how do I disable Hyperthreading? v8esprit Linux - Hardware 2 12-03-2003 07:01 PM
simply put, how do I disable Hyperthreading? v8esprit Mandriva 1 12-03-2003 06:59 PM
simply put, how do I disable Hyperthreading? v8esprit Linux - Laptop and Netbook 0 12-03-2003 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:17 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