O'Reilly logo

Raspberry Pi Networking Cookbook - Second Edition by Rick Golden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Giving a user sudo privileges (id and usermod)

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.

Getting ready

The following ingredients are used in this recipe:

  • You will require an initial setup or a basic networking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required