This recipe shows how to add a user to the privileged sudo
group.
When users are created, they are given an ordinary set of user privileges by default. The user can log in to the Raspberry Pi, create and delete files in their own user directory, and execute any command that does not require super-user privileges. If you'd like a new user to execute special commands such as shutdown
, reboot
, and raspi-config
, you'll need to add the user to the sudo
user group.
After completing this recipe, you'll be able to give an ordinary user super-user privileges by adding the user to the sudo
user group.
The following ingredients are used in this recipe:
You will require an initial setup or a basic networking setup for the Raspberry Pi that has been powered on. You also need to be logged in as the user
pi
(refer to the recipes in Chapter 1, Installation and Setup, to learn how to boot and log in and the previous recipes in this chapter to understand...