The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-27-2007
reborg's Avatar
reborg reborg is offline
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,502
If manipulating the passwd file directly I would suggest you use the safer alternative which is awk.

In this case however, why not just use the system provided command for doing this, usually the passwd or usermod commands have an option for locking accounts.
Reply With Quote