Tag Archives: Linux

Raspberry Pi Linux LESSON 21: Adding an Admin User With Same Privileges as Pi

In LESSON 19 we showed how  to add users to the Pi with limited permissions. In this lesson we show how to add a user with Admin privileges just like the default “Pi” user.

Fist you will want to log on as the default “pi” user. After logging on, you can add another user with the command:

once the user is added, you can then give them admin privileges like the pi user my modifying the account with the command:

Now your user “paul” has the same admin privileges as “pi”. However if “paul” tries to execute a sudo command it will ask for his password. If you want “paul” to be able to execute sudo without entering password, you need to do the following:

NOTE: Messing up this file will corrupt your operating system. I suggest STRONGLY making a backup of your system before moving forward. Or, you could just leave things as they are, and “paul” will have to enter password when doing a sudo command

 and then you will be nano-editing a file. Add the following to the last line of the file:


Then Control o and enter to save the file, and then control x to exit.

Raspberry Pi Linux LESSON 20: Backing Up Your SD Card and Operating System

It is fairly easy to corrupt your SD card or your operating system on the Raspberry Pi. If this happens, and you do not have a backup, you will likely have to rebuild your system from scratch. Hence, it is important to be diligent in keeping your Pi backed up. In this lesson we show how you can back it up using Windisk32Manager, a free and simple program that will do the trick.

Please note that you can not back the card up by simply using a windows drag and drop of the contents. You actually have to make the disk image as shown in this video.

Raspberry Pi Linux LESSON 19: Adding New Users

In this lesson we show how to add new users to the Raspberry Pi. The default Pi account on the Raspberry Pi has sudo access, which means that when logged on as “pi” you can pretty much do anything you want by accessing the sudo command prefix. In this lesson we do not add a sudo user, but just one that can pretty much do things in their account folder.  To add another user named austin without sudo priviledges, you would use the command:

$ sudo useradd austin -m -s /bin/bash -g users

Then to assign a password, you would give the command:

$sudo passwd austin

Then enter the password when prompted.

In creating a new user in the “users” group, that new user can create and edit files in his folder (/home/austin), and can look at most things on the system, but can not change or add things outside his folder. To allow the user to have sudo privileges, he would need to be added to the sudo group.

To remove a user, you need to be logged into an account with sudo privileges, and then enter the command:

$sudo userdel austin

Which would delete the user austin. This command would delete the user, but would keep their files and folders (/home/austin), but the person could not log in any more. If you wanted to remove the user, and all their files, you would use the following command:

$sudo userdel -r austin

For this command, the user austin, and all his files are removed.

Raspberry Pi Linux LESSON 18: Connect from Windows Using Putty SSH Telnet Client

We are now ready to begin connecting to the Raspberry Pi remotely from a windows based machine. This lesson shows you how to install Putty, a SSH Telnet Client, onto your windows machine, and then connect to the Raspberry Pi from anywhere on your network. You will end up with a Terminal window on your desktop computer that is connected to your Raspberry Pi. Remote login is one of the powerful features of Linux.