Dataplicity Developer Hub

Dataplicity Documentation

Here you'll find announcements for new features and comprehensive guides to help you integrate Dataplicity into your Raspberry Pi projects.

Get Started    Announcements

Running sudo

How to run commands as a superuser from the Dataplicity terminal

For your security, the Dataplicity client uses an unprivileged service account. If you want to use 'sudo' from the Dataplicity terminal, for example to allow you to install programmes or manage your device, you must first switch to a more privileged user account and enter the password for that account.

Here's the video howto

Prefer the tutorial? Here goes...

On a Pi, the default 'pi' account is suitable. To switch to the 'pi' user, generally indicated by the pi@raspberrypi / $ prompt, just type:

su pi

You will be asked to enter the 'pi' account password which, unless you have changed it, is raspberry.

When your screen looks like this you're ready to go

When your screen looks like this you're ready to go

From there you can 'sudo' as normal:

sudo cat /etc/shadow