
without the dangers (and responsibilities) of being logged in as root.
You’ll be using sudo a lot when interacting with hardware directly, or
when changing system-wide configurations, such as when you’re
installing software.
As the pi user, there’s not much damage you can do to
the system. As superuser, you can wreak havoc,
accidentally or by design. Be careful when using sudo,
especially when moving or deleting files. Of course, if
things go badly, you can always make a new SD card
image (see Appendix A).
Each file belongs to one user and one group. Use chown and chgrp
to change the file’s owner or group. You must be root to use either: