[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatic password changing



Brian May <bam@debian.org> wrote:
>>>>>> "Tim" == Tim Haynes <piglet@glutinous.custard.org> 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~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply to: