Skip to content

Commit bf3318b

Browse files
EN update
1 parent 42f5723 commit bf3318b

File tree

1 file changed

+25
-4
lines changed
  • pages/bare_metal_cloud/dedicated_servers/replacing-user-password

1 file changed

+25
-4
lines changed

pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-gb.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,46 @@ If needed, before changing a password, **identify existing accounts** using the
7575
cat /etc/passwd
7676
```
7777

78-
To change the password for a specific account (e.g., **user1**), always specify the username:
78+
Example output (shortened):
79+
80+
```console
81+
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
82+
bin:x:2:2:bin:/bin:/usr/sbin/nologin
83+
sys:x:3:3:sys:/dev:/usr/sbin/nologin
84+
.
85+
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
86+
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
87+
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
88+
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
89+
.
90+
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
91+
```
92+
93+
Find your user name(s) in the list of accounts.
94+
To change the password for a specific account (e.g. **user1**), enter this comand:
7995

8096
```bash
8197
passwd user1
98+
```
99+
100+
Enter the new password twice and confirm:
101+
102+
```console
82103
# New password:
83104
# Retype new password:
84105
# passwd: password updated successfully
85106
```
86107

87108
> [!primary]
88109
>
89-
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is often **root** after running `chroot`).
110+
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is **root** after executing `chroot`).
90111
> Always specify `passwd <user>`.
91112
92113
Remember to use the regular boot mode of your server when restarting it in your [OVHcloud Control Panel](/links/manager).
93114

94115
Refer to the corresponding [rescue mode guide](#step1) if necessary.
95116

96-
You have now access to the server with your new password.
117+
The modified user account has now access to the server via SSH with the new password.
97118

98119
## Go further
99120

@@ -105,4 +126,4 @@ You have now access to the server with your new password.
105126

106127
[How to configure user accounts and root access on a server](/pages/bare_metal_cloud/dedicated_servers/changing_root_password_linux_ds)
107128

108-
Join our [community of users](/links/community).
129+
Join our [community of users](/links/community).

0 commit comments

Comments
 (0)