Skip to content

Instantly share code, notes, and snippets.

@talk2bryan
Created January 29, 2018 06:46
Show Gist options
  • Save talk2bryan/d7a397914d9eda6183e4fbefb58a1126 to your computer and use it in GitHub Desktop.
Save talk2bryan/d7a397914d9eda6183e4fbefb58a1126 to your computer and use it in GitHub Desktop.
Set root password for Linux machines
# Switch to root user
sudo -s
# Update password:
passwd # Enter new password and confirm by repeating it
# Switch back to listed user (e.g. tom)
su tom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment