Page 1 of 1

How to create a new user in Raspberry Pi

Posted: Tue Jul 17, 2018 12:21 am
by Neo
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