linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ian Ward Comfort <icomfort@rescomp.stanford.edu>
To: linux-admin@vger.kernel.org
Subject: Re: Change password with usermod
Date: Sat, 10 Mar 2007 13:42:07 -0800	[thread overview]
Message-ID: <C114C6FC-895D-475C-B96E-3E1AD16C20AD@rescomp.stanford.edu> (raw)
In-Reply-To: <esu6am$4rg$1@sea.gmane.org>

On Mar 10, 2007, at 3:55 AM, Krzysztof Dubowik wrote:
> However, I usually user chpasswd to change the password from a  
> script, so your script becomes:
>
> # echo postgres:secret | chpasswd

A better idea is to:

# chpasswd < passfile

where passfile has been created with the contents:

postgres:secret

That prevents your new password from appearing momentarily in the  
process list during this procedure.

—IWC

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2007-03-10 21:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-10 10:42 Change password with usermod Mário Gamito
2007-03-10 10:56 ` Mário Gamito
2007-03-10 11:55 ` Krzysztof Dubowik
2007-03-10 12:05   ` Mário Gamito
2007-03-10 21:42   ` Ian Ward Comfort [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-10  9:53 Mário Gamito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C114C6FC-895D-475C-B96E-3E1AD16C20AD@rescomp.stanford.edu \
    --to=icomfort@rescomp.stanford.edu \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).