RootPasswordChange SOP

From FedoraProject

Revision as of 21:28, 27 May 2011 by Skvidal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Infrastructure InfrastructureTeamN1.png
Shortcut:
ISOP:RootPasswordChange

Changing root passwords globally and with haste

  • Create a file in /root on puppet1 named thatfile
  • contents should be:
root:SHA-encrypted-form-of-new-password

NB: don't name the file newpassword or things go weird on puppet1 :)

func-sendfile /root/thatfile /root/newpassword
func-command 'cat /root/newpassword | /usr/sbin/chpasswd -e'
func-command 'rm -f /root/newpassword'