RootPasswordChange SOP

From FedoraProject

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

Jump to: navigation, search
Infrastructure InfrastructureTeamN1.png

Changing root passwords globally and with haste

  • Create a file in /root on puppet1 named thatfile
  • contents should be:

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

func-sendfile /root/thatfile /root/newpassword

NB: func-sendfile should be in /usr/local/bin - shortly - it sadly outputs very poorly as to what it is doing - something that skvidal is working on.

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