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.

learn more… | top users | synonyms

0
votes
3answers
38 views

sudo apt-get not working

I was trying to install re2c but terminal replies the following: sudo apt-get install re2c Reading package lists... Done Building dependency tree Reading state information... Done The ...
1
vote
1answer
25 views

allow other user to run wiringPiSetupSys()

I hava e program called outlet in which I communicate out on wiring pin 2 corresponding to BCM-PIN 27 on my Pi: #include "NewRemoteTransmitter.h" #include <stdlib.h> #include <stdio.h> ...
0
votes
1answer
32 views

Syntax error in /etc/sudoers

For no reason that I can figure, my Raspbian install on my Pi stopped letting me sudo. I've been able to get into a kind of single-user mode using this page, but now that I'm there, I can't figure out ...
-1
votes
0answers
15 views

Can I customize users privilege? [duplicate]

I want to create a new user for my friend and let him access to my raspberry pi remotely from another city. I want to let him do what ever he wants except accessing raspi-config and other users files, ...
1
vote
1answer
37 views

Allow sudo only to run one Python script that accesses GPIO

I have a simple Python script that controls three LEDs. I want to limit the sudo command for my user counter (member of group pimem) to just run this script and because it access the GPIOs also allow ...
1
vote
0answers
37 views

Pi won't start properly after dd backup

So I've used my Mac to write the Raspbian OS to a 16 GB SD card, and it ran without problem. Then I updated and upgraded with sudo apt-get update && sudo apt-get upgrade I also installed ...
1
vote
0answers
69 views

sudo: effective uid is not 0, is sudo installed setuid root?

For a somewhat stupid reason I've run sudo chmod -R 777 /usr/bin and now get the error message. I know that I've broken my suso, but is there a way to fix it know what directory is involved?
0
votes
1answer
51 views

sCommand not found

I am trying to install a waveshare LCD touch screen on a Raspberry Pi running the OctoPi (Raspbian based) OS. Following the Waveshare tutorial: I have downloaded and extracted the drivers and moved ...
0
votes
0answers
172 views

Best way to access GPIO through a nodejs script - without root

I'm building a web dashboard for a temperature sensor. The page is served by node.js, and the sensor connected to GPIO is accessed by a Python script, which is run by node.js. Relevant code: var ...
1
vote
2answers
107 views

sudo without password: More of an issue on Apple?

I asked this question over on the Raspberry Pi forums in an attempt to keep it low key, but I can't seem to find it now, so I'll ask it here. It is on-topic and definitely specific to the Raspberry ...
0
votes
0answers
193 views

Error when trying to mount harddrive

Hello I have tried to mount my hard drive to a folder. First I created a folder with mkdir, named /media/movies but when I tried to mount it using sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 ...
1
vote
0answers
78 views

GPIO superuser problem [closed]

I have an analog to digital convertor (mcp3008) hooked up to the spi ports. I'm running a python script that reads the digital input and prints it as an integer number to the screen. I want to take ...
1
vote
0answers
63 views

How to connect to Bluetooth LE devices without being root (via sudo)?

I am running Raspbian with BlueZ 5.30 and a Cambridge Silicon Bluetooth USB Dongle installed. I can successfully bring up the BLE interface, as well as detect and connect to a TI SensorTag over BLE ...
0
votes
0answers
50 views

Installed package using `sudo aptitude`

I have installed packages using the sudo aptitude command by selecting the packages from a list but after installation, the packages I installed doesn't seem to appear in my program menu. They are ...
5
votes
2answers
2k 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 ...
2
votes
2answers
3k views

Access denied when starting systemd service

Noob question, but hopefully someone can help me out here. I'm transitioning from init.d to systemd on my RPi running Linux, as I'm told it would cut my boot time in half. My init script requires ...
1
vote
2answers
1k views

Permission denied for GUI operations

Running Raspbian on RPi B+, I can sudo in command mode and do all operations like deleting a directory, etc. But when in GUI mode I get permession denied, although I am using the same user in both ...
0
votes
1answer
208 views

Use of 'sudo' for part of a Python script [closed]

I have a program that automatically calls the following script. The script works up to point x, but it needs root privileges to perform the code from this point on. Can I give the script sudo ...
1
vote
1answer
4k views

autorunning a python script at startup not working

I have a script called BOAT.py and it lives in /home/pi/. I want to autostart it at boot and I did a lot of research about doing so. I found many ways but none of them work. I tried writing sudo ...
3
votes
2answers
424 views

Why does sudo not work in this case?

I was playing with the raspberry pi leds (How do I control the system LEDs using my software?) Interestingly, on my pi the following command fails: sudo echo heartbeat ...
0
votes
1answer
178 views

How to solve: locked out of sudoer rights and root account on Arch linux of RPi [closed]

I disabled the root login on Arch Linux installed in my RPi without putting my own user account into sudoers. Now I'm prevented from recovering root login. I understand one can use liveCD or GRUB to ...
2
votes
1answer
1k views

Command line broken (SD card corrupted)

EDIT You'll find the original question below the line. This edit is intended to explain better what was my real issue according to the comments. I could login (by SSH using WiFi) on my Raspberry ...
1
vote
2answers
7k views

allow apache to run sudo scripts [closed]

I have a raspi HEADLESS with an apache on it, I can access my pages on there, no problem. Then I have some home made capacitive sensors that are not working nicely. Id like to plot the values I read ...
1
vote
2answers
433 views

SSH Login prompting for SUDO password - RaspBMC

I've modified the sudoers file so that a sudo password is required for all except mount and umount for an automated script: # User privilege specification root ALL=(ALL) ALL pi ALL=(ALL) ALL ...
0
votes
1answer
1k views

How to install pygame.mixer

I am trying to run some code from GitHub, but it is asking for pygame.mixer. How do I install this on the raspberry pi? Can someone give me the Sudo Get command? I am rather new to Linux.
1
vote
1answer
342 views

remember sudo password in xbian

How can I make xBian to remember the sudo password for a while ?? Performing administration taskes on it gets painful with the OS requesting sudo password at any command The funny thing is that if ...
1
vote
1answer
497 views

Executing a program as root after startx

How can I execute a program located in /home/pi/ as root after doing startx? touch .xiinitrc -> echo "sdltest" > .xiinitrc Program starts, of course, with the rights of the user, but it needs to ...
2
votes
4answers
3k views

“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 ...
5
votes
2answers
8k 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 ...
2
votes
2answers
5k views

How can I run gparted over ssh?

I'm SSHing into my RPi, with X forwarding enabled. I'm trying to run gparted, but it seems to fail for me. $ gksudo gparted ====================== libparted : 2.3 ====================== The program ...
1
vote
3answers
1k views

CGI and sudoers

I may got stuck in a very simple problem, but I can't figure it out. I would like to run using a cgi script a simple command: sudo service transmission-daemon stop in order to stop a system daemon. I ...
2
votes
2answers
332 views

sudoers file changed?

I usually SSH into my Raspberry Pi with the "pi" account. I always have to type my password (every 5 mins) when I want to use sudo. Now I don't have to do that anymore. My sudoers file has the ...
1
vote
1answer
3k views

/etc/sudoers file is completely corrupted parse error in /etc/sudoers

when i edited my sudoers file & saved it on raspberry pi its giving me. sudo: parse error in /etc/sudoers near line 26 sudo: no valid sudoers sources found, quitting ...
1
vote
2answers
4k 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 ...
4
votes
3answers
42k views

How to change Pi sudo 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 ...
1
vote
1answer
860 views

Created a new user on Xbian, now sudo prompt after each SSH login

I'm running the lastest Xbian on my Pi and created a new user on it. Whenever I log on to the Pi via SSH, the sudo prompt shows up right after the motd. It doesn't matter if that user is actually ...
5
votes
2answers
1k 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 ...
5
votes
2answers
5k views

Can't access shared libraries when running with sudo

I'm trying to get a demo working writing PCM to the I2S; I've created a small demo program that gives an error when I run with the following command ./demo stereo_small.wav can't open /dev/mem So I ...
9
votes
2answers
4k 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?