Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Changing default username

no-216 au-03

Default username

Default username is pi and you can make your Raspberry Pi even more secure by changing default username.

Changing username

  1. Open terminal.
  2. Run below command to add a new user. (Our user name is Abiola. You can change it)

sudo adduser Abiola

3. You can enter personal information here.
4. Press Y

  1. Run below command to add them to sudo group.

sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi Abiola

2. Run below command and check the permission

sudo su – Abiola

3. You’ll need to first close previous user (pi) process with the following:

sudo pkill -u pi

4. Type your new user password.

  1. You will see this popup on the screen.
  2. Choose your new user.
  3. Type your password.
  4. Click Login

Please note that with the current Raspberry Pi OS distribution, there are some aspects that require the pi user to be present. If you are unsure whether you will be affected by this, then leave the pi user in place. Work is being done to reduce the dependency on the pi user.
To delete pi user, run below command:
sudo deluser pi

See also article in the RASP Library

Inhaltsverzeichnis