Book Image

Raspberry Pi Networking Cookbook - Second Edition

By : Rick Golden
Book Image

Raspberry Pi Networking Cookbook - Second Edition

By: Rick Golden

Overview of this book

<p>With increasing interest in Maker Projects and the Internet of Things (IoT), students, scientists, and hobbyists are using the Raspberry Pi as a reliable, inexpensive platform to connect local devices to Internet services.</p> <p>This book begins with recipes that are essential to installing the Raspberry Pi and configuring it for network access. Then it continues with recipes on installing common networking services such as firewalls and file sharing.</p> <p>The final chapters include recipes for network monitoring, streaming data from the Raspberry Pi to IoT services, and using clusters of Raspberry Pis to store and analyze large volumes of data.</p>
Table of Contents (14 chapters)
Raspberry Pi Networking Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 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...