Raspberry Pi user setup
When first booting a Raspberry Pi the OS comes with a default super admin user and password, and since is common to all fresh setups, it’s important to change the settings for security concerns.
- Change password for
pi
user
sudo passwd pi
- Create a new user
sudo useradd -m username
- Define a password for the new user
sudo passwd username
- Add the new user to the sudo group
By default on Debian/Ubuntu systems, members of the group sudo are granted with sudo access. To add the user you created to the sudo group use the usermod command:
usermod -aG sudo username