def set_password(self,
	                 password,
	                 user='',
	                 note=None):
		"""Sets the password for the current user or passed-in user.

		As a side effect, installs the "password" package.

		@param user:        username to set the password for. Defaults to '' (i.e. current user)
		@param password:    password to set for the user
		@param note:        See send()
		"""
		shutit = self.shutit
		shutit.handle_note(note)
		if isinstance(password, str):
			shutit_global.shutit_global_object.secret_words_set.add(password)
		self.install('passwd')
		if self.current_environment.install_type == 'apt':
			self.send(ShutItSendSpec(self,
			                         send='passwd ' + user,
			                         expect='Enter new',
			                         check_exit=False,
			                         ignore_background=True))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect='Retype new',
			                         check_exit=False,
			                         echo=False,
			                         ignore_background=True
			                         ))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect=self.default_expect,
			                         echo=False,
			                         ignore_background=True,
			                         ))
		elif self.current_environment.install_type == 'yum':
			self.send(ShutItSendSpec(self,
			                         send='passwd ' + user,
			                         expect='ew password',
			                         check_exit=False,
			                         ignore_background=True))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect='ew password',
			                         check_exit=False,
			                         echo=False,
			                         ignore_background=True))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect=self.default_expect,
			                         echo=False,
			                         ignore_background=True))
		else:
			self.send(ShutItSendSpec(self,
			                         send='passwd ' + user,
			                         expect='Enter new',
			                         check_exit=False,
			                         ignore_background=True))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect='Retype new',
			                         check_exit=False,
			                         echo=False,
			                         ignore_background=True))
			self.send(ShutItSendSpec(self,
			                         send=password,
			                         expect=self.default_expect,
			                         echo=False,
			                         ignore_background=True))
		shutit.handle_note_after(note=note)
		return True
Sets the password for the current user or passed-in user.

		As a side effect, installs the "password" package.

		@param user:        username to set the password for. Defaults to '' (i.e. current user)
		@param password:    password to set for the user
		@param note:        See send()