RootPasswordChange SOP

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{header|infra}} {{shortcut|ISOP:RootPasswordChange}} == Changing root passwords globally and with haste == * Create a file in /root on puppet1 named thatfile * contents should...')
 
Line 17: Line 17:
 
</pre>
 
</pre>
  
 +
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.
 
<pre>
 
<pre>
 
func-command 'cat /root/newpassword | /usr/sbin/chpasswd -e'
 
func-command 'cat /root/newpassword | /usr/sbin/chpasswd -e'

Revision as of 21:33, 27 May 2011

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

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'