sudo stands for Super User Do, and is prefixed before command-line commands when full access to the operating system is required.

learn more… | top users | synonyms

0
votes
1answer
28 views

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 needs root privileges to perform the code from this point on. Can I give the script sudo privileges ...
1
vote
1answer
107 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 ...
0
votes
0answers
21 views

installing pygame.mixer

so i've been looking for a few hours now on how to install pygame mixer. I have pygames installed already. Im not sure if I have to download it apart of pygames or if it comes pre-installed.
1
vote
2answers
76 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
41 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
256 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
1k 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
268 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
445 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.
0
votes
1answer
161 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
145 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
3answers
1k 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 ...
4
votes
2answers
2k 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 ...
1
vote
2answers
2k 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
488 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
234 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
2k 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 ...
0
votes
1answer
2k 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 ...
3
votes
3answers
18k 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
697 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
591 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
3k 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 ...
8
votes
2answers
3k 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?