How to change the user's password with Ubuntu
It's f.oh.S.S.The article "How to Change Password in Ubuntu [for Root and Normal Users]" published on February 17 (US time) introduced how to change the password on Ubuntu.
Users can set their account password when installing Ubuntu.The article introduces how to change your password and other users after installation.There are two methods: using the Passwd command and using the settings application as follows:
コマンド | 内容 |
---|---|
passwd | 自分のパスワードを変更する。現在使用しているパスワードの入力が求められるほか、新しいパスワードを2回入力する必要がある |
sudo passwd ユーザ名 | 自分以外のユーザーのパスワードを変更する |
sudo passwd root | rootのパスワードを設定または変更する |
Ubuntu has no password on root by default.Users use sudo to run commands that require administrator privileges, and there is no need to log in or run SU to root.
The article describes that the route password can be set and changed by using the Passwd command, but Ubuntu points out that it is not necessary to set the root and use it in the first place, and that it should not be done. are doing.