The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sudo]

sudo stands for Super User Do. It allows users to run programs with the security privileges of another user (if configured access permissions allow it), by default the superuser and is therefore prefixed before commands when full access to the operating system is required.

Filter by
Sorted by
Tagged with
13
votes
5answers
129k views

How to change user pi sudo permissions; how to add other accounts with different permissions?

Since I occasionally use my Pi over SSH, I have learned that it is dangerous to allow SSH to access sudo commands. Thus, I plan to turn off this permission in the near future. But, when I install ...
4
votes
1answer
24k views

Why my program won't communicate through ttyAMA0 on Raspbian (Jessie)?

I am running two different Raspberry PI and they are running Raspbian Wheezy and Jessie. On Wheezy, I simply commented out a line T0:23: respawn:/sbin/getty -L ttyAMA0 115200 Vt00 in /etc/inittab file....
7
votes
2answers
17k views

Automatically run a program as root for GPIO?

I have a Raspberry Pi running Raspbian that I want to auto-login and then automatically run a program that uses the GPIO as root. I have auto-login working as per this website. What is the best way ...
11
votes
2answers
5k views

How to play audio without being root (via sudo)?

In order to play audio (espeak or aplay for example) I have to be root (via sudo). How can I do those as just a regular user? Is there a group I must be a member of or do I have to change some ...
18
votes
4answers
50k views

startx: command not found

I am total newbie to Raspbian world and my problem is that I can't start the GUI because when I write: > startx I get back: bash-: startx command not found; using sudo returns the same error. ...
12
votes
2answers
5k views

Why do I have to `sudo`?

I've followed a couple of tutorials on my RPi and a lot of commands start with sudo; what does it mean and what does it do?
6
votes
2answers
6k views

Node.Js on raspbian not found with Sudo

I installed node.js according to this article . For this i downloaded a precompiled node.js arm-pi distributition and unzipped it cd /opt sudo wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-...
4
votes
2answers
10k views

Autorun Firefox on startup…grrrrrrr!

Long Story (Short): Okay, I've read all of the guides, questions etc I can find and it's still not happening. I can't get the browser to open its self up when the pi boots. Background: I'm following ...
3
votes
4answers
7k views

How to solve “Encountered a section with no Package: header” error?

I am running a bunch of class Raspberry Pi computers behind a school proxy. I'm using Raspbian off a very recent NOOBS image. The internet connection is supplied through the school WiFi and after ...
1
vote
1answer
1k views

Raspberry Pi 3 with Ubuntu 16.04.3 LTS sudo apt-get update exits with dpkg error code (1)

I'm running a Raspberry Pi 3 with Ubuntu 16.04.3 LTS xenial. sudo apt-get update exits with: dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.157.11_all.deb (--unpack): trying ...
1
vote
2answers
8k views

Unable to use SSH to access Pi over local network

Please could someone help me to undo this command, I tried for enabling ssh on the pi?: sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server I read that command on this page. ...
0
votes
1answer
5k views

Accessing gpio not working as non-root. “Can't open /dev/mem: : Permission denied”

I am attempting to get a c++ program to access the gpio as non-root. I am on a raspi 2 running Jessie. I followed the instructions on issue: Access GPIO pins without root. No access to /dev/mem. Try ...