Setting a user's password as root?

  • Follow


Ok, pretty simple question, but I'm a pretty simple guy.  As root, I
want to set a user's password.  What is the best way to do this?  I am
running Mandrake 8.2 i586.  Thanks -
0
Reply laredotornado (854) 3/2/2004 1:37:14 AM

D. Alvarado wrote:
> Ok, pretty simple question, but I'm a pretty simple guy.  As root, I
> want to set a user's password.  What is the best way to do this?  I am
> running Mandrake 8.2 i586.  Thanks -

As root you do it with:   passwd username
As the user if the user has permission to change his/her 
password:   passwd   # then enter password

-- 
Confucius:  He who play in root, eventually kill tree.
Registered with The Linux Counter.  http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.25 SMP i686 (GCC) 3.3.3
Uptime: 11 days, 21:45, 1 user, load average: 1.10, 1.09, 1.09
0
Reply thunderbolt01 (242) 3/2/2004 2:00:08 AM



D. Alvarado wrote:

> Ok, pretty simple question, but I'm a pretty simple guy.  As root, I
> want to set a user's password.  What is the best way to do this?  I am
> running Mandrake 8.2 i586.  Thanks -

See passwd(1) in the manual.

simply put:

% passwd username

if you are root, it will not prompt you
for the old password.  If you are not
root, it will only you to change you own
password, not matter what you type
for "username".  If you are root, you
can change anyone's.


--=20
=D1
"It is impossible to make anything foolproof because fools are so=20
ingenious" - A. Bloch

0
Reply hukolau3 (292) 3/2/2004 2:01:51 AM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1 Mar 2004 17:37:14 -0800,
 D. Alvarado <laredotornado@zipmail.com> wrote:
> Ok, pretty simple question, but I'm a pretty simple guy.  As root, I
> want to set a user's password.  What is the best way to do this?  I am
> running Mandrake 8.2 i586.  Thanks -


passwd username

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFARA39d90bcYOAWPYRAqEIAJ0W0pJn+E8fOtSSE1kGOGqozkuTbgCfZGDi
+fO84JhI+axZ+Vksnugf+7g=
=UrZr
-----END PGP SIGNATURE-----

-- 
Jim Richardson     http://www.eskimo.com/~warlock
Take responsibility for your actions, put a lawyer out of buisness.
0
Reply warlock (9518) 3/2/2004 4:30:53 AM

laredotornado@zipmail.com (D. Alvarado) writes:

]Ok, pretty simple question, but I'm a pretty simple guy.  As root, I
]want to set a user's password.  What is the best way to do this?  I am
]running Mandrake 8.2 i586.  Thanks -

passwd username


0
Reply unruh (868) 3/2/2004 6:44:10 AM

Jim Richardson wrote:

> iD8DBQFARA39d90bcYOAWPYRAqEIAJ0W0pJn+E8fOtSSE1kGOGqozkuTbgCfZGDi
> +fO84JhI+axZ+Vksnugf+7g=
> =UrZr
> -----END PGP SIGNATURE-----
> 
 > --
 >  Jim Richardson     http://www.eskimo.com/~warlock
 >  Take responsibility for your actions, put a lawyer out of buisness.


Take responsibility for keeping usenet free of clutter:  use PGP sigs 
only when neccesary.

0
Reply alan.browne (3817) 3/2/2004 11:19:28 PM

In message <qD81c.143138$QM4.1817745@weber.videotron.net>, Alan Browne 
<alan.browne@FreeLunchVideotron.ca> wrote
>Jim Richardson wrote:
>
>> -----END PGP SIGNATURE-----
[Abusive .sig quote snipped as it should have been originally]
>Take responsibility for keeping usenet free of clutter:  use PGP sigs 
>only when neccesary.

How do *you* propose to judge whether Alan needs to use a PGP sig or 
not? He is the best placed person to know whether someone has attempted 
to impersonate him.
-- 
Robert          Talking to yourself - first sign of madness
                 Answering yourself back - first sign of schizophrenia
                 I go one better: If I don't like the answer ...
                 I put it to a majority vote
0
Reply Robert4309 (588) 3/3/2004 8:58:33 AM

6 Replies
43 Views

(page loaded in 0.13 seconds)


Reply: