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 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
single user mode - user accounts passwords orestis UNIX for Dummies Questions & Answers 3 02-02-2009 05:18 PM
need script for locked and unused user accounts in /export/home directory krishna176 SUN Solaris 1 03-25-2007 02:45 PM
Locked out of Mandrake 9.1 user account alarmcall Linux 5 06-26-2004 01:38 PM
How to get user status(active,locked,retired, etc) reports on Sun, HP, OSF and Linux? GAMO UNIX for Advanced & Expert Users 3 01-28-2004 10:59 AM
[LINUX] Creating new user accounts Arendo UNIX for Dummies Questions & Answers 3 11-18-2003 09:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-04-2009
avklinux avklinux is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 27
Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks
AVKlinux
  #2 (permalink)  
Old 02-06-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,884
I don't think these terms have official meanings in UNIX. One can disable an account in several ways: (1) replace the password field with "x", (2) set to 0 the day in /etc/shadow that indicates the password has expired, (3) replace the user's shell with /bin/false or a custom program which does not allow the user to do anything useful and is not in /etc/shells (4) remove the passwd (or shadow or both) entry for that user.
  #3 (permalink)  
Old 02-06-2009
avklinux avklinux is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 27
Otheus,

Thanks For ur reply.

-AVKlinux
  #4 (permalink)  
Old 02-06-2009
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
The Linux passwd command seems to draw a distinction. It has -l and -u to lock and unlock an account. It does this by adding a !! to the front of the encrypted password to lock, and removing that !! to unlock. There is a -d for disable and it replaces the encrypted password with just a !! and obviously this is not so easily reversible.
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 08:39 AM.


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