Question: how to change username and password raspberry pi?
Answer: Run the command raspi-config without using sudo to preface the command: raspi-config. Note the message that is displayed.
Now run sudo raspi-config and set the password of the user pi.
Create a new user on the Raspberry Pi. Use your name in lower case as the user. ... 
Set the password for this user.