How to create a new user in Raspberry Pi

Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

How to create a new user in Raspberry Pi

Post by Neo » Tue Jul 17, 2018 12:21 am

Open a terminal and type

Code: Select all

sudo adduser username
. Username could be any name such as Saman, Sandun etc...
Enter password for the new user and some other general information such as full name, etc...

You may add this user to sudoers group (only if necessary) by typing

Code: Select all

sudo visudo
in terminal.

Use the cursor keys to navigate to the line below the entry for pi and copy it exactly, but use your new username instead of pi.

Code: Select all

pi    ALL=(ALL) ALL
saman ALL=(ALL) ALL
Post Reply

Return to “Raspberry Pi”