The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Replace password field using ed/sed
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Replace password field using ed/sed
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
04-28-2007
ghostdog74
Registered User
Join Date: Sep 2006
Posts: 2,556
Code:
awk -F ":" 'BEGIN{OFS = ":"} /youruser/{$2="*LK*"}{ print}' /etc/passwd
please use at own risk.
Last edited by ghostdog74; 04-28-2007 at
02:42 AM
..
ghostdog74
View Public Profile
Find all posts by ghostdog74
Find ghostdog74's past nominations received
Find ghostdog74's present nominations given