From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TcOhcmlvIEdhbWl0bw==?= Subject: Re: Change password with usermod Date: Sat, 10 Mar 2007 12:05:54 +0000 Message-ID: <45F29F22.9070902@gmail.com> References: <45F28B94.5020800@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Krzysztof Dubowik , linux-admin@vger.kernel.org Hi, Thank you for your answer. > usermod needs a login name rather than the userid and you don't need = -u > option: >=20 > # 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: >=20 > # echo postgres:secret | chpasswd But this does :) Thanks a bunch. Warm Regards, M=C3=A1rio 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