I want to change the password I assigned to root on my Debian webserver to something longer and more secure.
Bit of an obvious newbie question, but how do I do that? I haven’t forgotten/lost the current password, I just want to change it.
|
Ah, use the
Or, if you’re running as root already (which you shouldn’t be), just:
The |
|||||||||||||||||
|
|
If you're going to be doing a lot of command-line administration, you might find it useful to check out the man pages for usermod(8), chfn(1), chsh(1), passwd(1), crypt(3), gpasswd(8), groupadd(8), |
|||
|
|
apropos password: you'll get a list of commands that contain “password” in their short description. You can narrow the search a little withapropos -s 1 password:-s 1restricts to section 1 of the manual, which contains user commands. – Gilles Mar 25 '11 at 19:55