Revision history of "LINUX - Get root access on machine"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 18:35, 30 May 2022Guillard talk contribs 451 bytes +8
  • curprev 18:34, 30 May 2022Guillard talk contribs 443 bytes +443 Created page with "1 Get root access on unix machine with standard account : <syntaxhighlight lang="linux"> sudo chown ACCOUNT:ACCOUNT /etc/passwd vi /etc/passwd </syntaxhighlight> 2 Add following line at the end of the file: <syntaxhighlight lang="linux"> SIMBA:x:0:0:root:/root:/bin/bash </syntaxhighlight> 3 Save, try it out and set back rights as before <syntaxhighlight lang="linux"> sudo su - SIMBA sudo chown root:root /etc/passwd </syntaxhighlight>"