From: "Mário Gamito" <gamito@gmail.com>
To: Krzysztof Dubowik <kite@interia.pl>, linux-admin@vger.kernel.org
Subject: Re: Change password with usermod
Date: Sat, 10 Mar 2007 12:05:54 +0000 [thread overview]
Message-ID: <45F29F22.9070902@gmail.com> (raw)
In-Reply-To: <esu6am$4rg$1@sea.gmane.org>
Hi,
Thank you for your answer.
> usermod needs a login name rather than the userid and you don't need -u
> option:
>
> # usermod -p $PASS postgres
I tried that but didn't work for me:
"[root@mail ~]# usermod -p $PASS postgres
usage: usermod [-u uid [-o]] [-g group] [[-a] -G group,...]
[-d home [-m]] [-s shell] [-c comment] [-l new_name]
[-f inactive] [-e expire ] [-p passwd] [-L|-U] name"
> However, I usually user chpasswd to change the password from a script, so
> your script becomes:
>
> # echo postgres:secret | chpasswd
But this does :)
Thanks a bunch.
Warm Regards,
Mário Gamito
-
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
next prev parent reply other threads:[~2007-03-10 12:05 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 [this message]
2007-03-10 21:42 ` Ian Ward Comfort
-- 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=45F29F22.9070902@gmail.com \
--to=gamito@gmail.com \
--cc=kite@interia.pl \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.