Managing User Accounts on Your Raspberry Pi
If you want to share the Raspberry Pi with different family members, you could create a user account for each one, so they all have their own home directory. The robust permissions in Linux help to ensure that people can’t accidentally delete each other’s files too.
When we looked at the long listing format, we discussed permissions. You might remember that users can be members of groups. On the Raspberry Pi, groups control access to resources like the audio and video hardware, so before you can create a new user account, you need to understand which groups that user should belong to. To find out, use the
groups command to see which groups the default pi user is a member of:
pi@raspberrypi ~ $
pi : pi adm dialout cdrom sudo audio video plugdev games users netdev input
To add a user, you use the
useradd command ...