Brian May <[EMAIL PROTECTED]> wrote:
>>>>>> "Tim" == Tim Haynes <[EMAIL PROTECTED]> writes:

>     Tim>      perl -npi.bak -e 's/^root:[^:]*:/root:pants/o'
>     Tim> /etc/shadow

> Just a nitpick for the very security paranoid (ie myself!):

> The encrypted password will show up in the ps listing...

> Out of curiosity: Is there anyway to avoid this?

Put the substitution command in a here document.
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to