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
2answers
69 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
35 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
57 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 ...
0
votes
0answers
35 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
35 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
801 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
2k 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
591 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
153 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
3k 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 ...
2
votes
2answers
234 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
96 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
973 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
5k 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
407 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.
0
votes
1answer
298 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
370 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
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
6k 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
4k 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
293 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 ...
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 ...
3
votes
3answers
33k 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
817 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
4k 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
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?