(17) Set Root Password and add a User Account.

Now let us set the root password, something we do not want to forget.


(chroot) raspberrypi / #   passwd root
New password:
Retype new password: 
passwd: password updated successfully
(chroot) raspberrypi / #

You will need a user account, you can not just ssh as root for example. Note that I have include this user as a member of the wheel group.

Please note that this is an extreme minimal user account, it does not create a /home/ directory or join the myriad of other groups. It does not even select bash as the shell.... Please read the handbook for proper instructions on creating a proper user account, belonging to more groups, with a home directory and user shell.

One last little point, if you have a separate partition for /home/ now is a good time to mount it... Before creating the user accounts.

A man page for useradd here


(chroot) raspberrypi / #   useradd -m -G users,wheel mary
(chroot) raspberrypi / #   passwd mary
New password:
Retype new password: 
passwd: password updated successfully
(chroot) raspberrypi / #

Do not forget to set the password, and do create a user account that can "wheel" - or you will lock your self out of your Raspberry because you will not be able to su to login as root.

If you just copy pasted the above, with out reading the Gentoo Handbook, you had better go back and read it now....

Next : Must have Utils

PREVIOUS INDEX NEXT