Skip to content

Commit e7bbcc7

Browse files
committed
revert the changes
1 parent af62e5c commit e7bbcc7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/virtual-machines/troubleshooting/reset-password.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: virtual-machines-linux
1212
ms.workload: infrastructure-services
1313
ms.tgt_pltfrm: vm-linux
1414
ms.topic: troubleshooting
15-
ms.date: 09/20/2019
15+
ms.date: 08/20/2019
1616
ms.author: delhan
1717

1818
---
@@ -34,13 +34,13 @@ You can't log in to the VM, and you receive a message that indicates that the pa
3434

3535
2. Connect to the troubleshooting VM using Remote Desktop.
3636

37-
3. Run the following SSH command on the troubleshooting VM to become a super-user.
37+
3. Run the following SSH command on the troubleshooting VM to become a super-user.
3838

3939
```bash
4040
sudo su
4141
```
4242

43-
4. Run **fdisk -l** or look at system logs to find the newly attached disk. Locate the drive name to mount. Then on the temporal VM, look in the relevant log file.
43+
4. Run **fdisk -l** or look at system logs to find the newly attached disk. Locate the drive name to mount. Then on the temporal VM, look in the relevant log file.
4444

4545
```bash
4646
grep SCSI /var/log/kern.log (ubuntu)
@@ -53,19 +53,19 @@ You can't log in to the VM, and you receive a message that indicates that the pa
5353
kernel: [ 9707.100572] sd 3:0:0:0: [sdc] Attached SCSI disk
5454
```
5555

56-
5. Create a mount point called **tempmount**.
56+
5. Create a mount point called **tempmount**.
5757

5858
```bash
5959
mkdir /tempmount
6060
```
6161

62-
6. Mount the OS disk on the mount point. You usually need to mount *sdc1* or *sdc2*. This will depend on the hosting partition in */etc* directory from the broken machine disk.
62+
6. Mount the OS disk on the mount point. You usually need to mount *sdc1* or *sdc2*. This will depend on the hosting partition in */etc* directory from the broken machine disk.
6363

6464
```bash
6565
mount /dev/sdc1 /tempmount
6666
```
6767

68-
7. Create copies of the core credential files before making any changes:
68+
7. Create copies of the core credential files before making any changes:
6969

7070
```bash
7171
cp /etc/passwd /etc/passwd_orig
@@ -76,13 +76,13 @@ You can't log in to the VM, and you receive a message that indicates that the pa
7676
cp /tempmount/etc/shadow /tempmount/etc/shadow_orig
7777
```
7878

79-
8. Reset the user's password that you need:
79+
8. Reset the users password that you need:
8080

8181
```bash
8282
passwd <<USER>>
8383
```
8484

85-
9. Move the modified files to the correct location on the broken machine's disk.
85+
9. Move the modified files to the correct location on the broken machine's disk.
8686

8787
```bash
8888
cp /etc/passwd /tempmount/etc/passwd
@@ -91,7 +91,7 @@ You can't log in to the VM, and you receive a message that indicates that the pa
9191
cp /etc/shadow_orig /etc/shadow
9292
```
9393

94-
10. Go back to the root and unmount the disk.
94+
10. Go back to the root and unmount the disk.
9595

9696
```bash
9797
cd /

0 commit comments

Comments
 (0)