This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vmware:esxi5:rootpw [2024/09/11 05:22] – js | vmware:esxi5:rootpw [2024/09/17 08:42] (current) – js | ||
---|---|---|---|
Line 12: | Line 12: | ||
- copy state.tgz to temp dir: <code bash>cp / | - copy state.tgz to temp dir: <code bash>cp / | ||
- change to tmp dir: <code bash>cd / | - change to tmp dir: <code bash>cd / | ||
- | - unpack state.tgz: <code bash>tar xzf state.tgz> | + | - unpack state.tgz: <code bash>tar xzf state.tgz</code> |
- now you can see the content of the file in /tmp \\ {{: | - now you can see the content of the file in /tmp \\ {{: | ||
- unpack the local.tgz file: <code bash>tar xzf local.tgz</ | - unpack the local.tgz file: <code bash>tar xzf local.tgz</ | ||
Line 18: | Line 18: | ||
- open shardow file with vi: <code bash>vi shadow</ | - open shardow file with vi: <code bash>vi shadow</ | ||
- delete the password hash after the root account (press i, go to the : and delete all the chars until the next : ) \\ {{: | - delete the password hash after the root account (press i, go to the : and delete all the chars until the next : ) \\ {{: | ||
- | - save file and exit (save with ESC + qw + ENTER) \\ \\ | + | - save file and exit (save with ESC + :wq + ENTER) \\ \\ |
- go one dir up: <code bash>cd ..</ | - go one dir up: <code bash>cd ..</ | ||
- pack the new local.tgz: <code bash>tar czf local.tgz etc</ | - pack the new local.tgz: <code bash>tar czf local.tgz etc</ |