Skip to content

Instantly share code, notes, and snippets.

@wudixiaotie
Created November 1, 2016 09:00
Show Gist options
  • Save wudixiaotie/475d61aeb615175d6c77ad25b18327a8 to your computer and use it in GitHub Desktop.
Save wudixiaotie/475d61aeb615175d6c77ad25b18327a8 to your computer and use it in GitHub Desktop.
Change root password of SmartOS Global Zone
umount /etc/shadow; cp /usbkey/shadow /etc/shadow; passwd root; cp /etc/shadow /usbkey/shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment