Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
45 views

Error in apt-get update

Whenever I run "sudo apt-get update" I get pi@raspberrypi:~ $ sudo apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian stretch ...
0
votes
2answers
26 views

I can not have the Permission ''sudo" to execute command lines on putty!

I have a problem for permission using "sudo" on putty (connected to raspberry pi3). My usrname is: karim My password: 0000 Each time, I have got this error when executing a command line " karim is ...
0
votes
2answers
30 views

uninstall a recently installed app

I installed lnd (lighgning network daemon) using the below command. sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-armv7-v0.5.1-beta/* What's the cleanest way to remove/rollback ...
1
vote
1answer
67 views

Start Service with Sudo

I am trying to run an Express API server with sudo permissions and have it automatically start on boot. The API needs access to bcm2835 library, and I get the following when trying to run node server....
0
votes
1answer
49 views

sudo startx broke my account

I wanted a font so I placed the .ttf in /usr/local/shared/fonts To do this I had to do sudo startx to give me super user. Now I wanted to check it worked so I rebooted and it asked me to login even ...
0
votes
1answer
31 views

RPi Unistalling All Upgraded Packages

After following this article, https://askubuntu.com/questions/101802/packages-having-unmet-dependencies-broken-packages, to fix an issue on my RPi when compiling QEMU, I ran sudo apt-get remove glib2* ...
1
vote
2answers
1k views

Accessing EXPORTED Environment Variables in Python

An often asked question, I know, but after searching through other solutions I'm still having problems. Most solutions say to make sure your variables are exported before trying to access them, but ...
0
votes
0answers
112 views

Run rpi_ws281x without sudo

I compiled the rpi_ws281x Library and the neopixel python wrapper following the instructions on https://learn.adafruit.com/neopixels-on-raspberry-pi/software The strandtest.py works using PWM on ...
1
vote
1answer
76 views

How do I make sudo!! add a space after sudo?

When I type sudo!! it never puts a space between sudo and anything. How do I make sudo!! add a space? Example: nano text.txt sudo!! sudonano text.txt Maybe I am using it wrong but it never works ...
0
votes
1answer
15 views

How can I give write permission to “/mnt/pidrive1” path?

I have connected an USB drive with my Raspberry Pi following this tutorial. Everything worked fine but I'm not able to rename, delete or move/copy any files to a folder using SFTP. I'm only able to ...
0
votes
0answers
95 views

Problems with Raspberry Pi Configuration

i'm pretty new with Raspberry Pi. I tried to sudo raspi-config, but it tells me The boot partition is not mounted - cannot configure. Note that raspi-config is intended for use on Raspbian only ...
0
votes
1answer
295 views

Raspberry Pi Model 2B Hostapd installation error: Unable to locate package

So, I am trying to set up my raspberry pi model 2B as a wifi hotspot. All the articles recommended installing and using hostapd and dnsmasq. I was able to install the dnsmasq package without any ...
0
votes
2answers
201 views

Allowing uwsgi to make GPIO calls

I've got a Raspberry Pi Zero W acting as a Flask python server that listens for webhooks, then runs a function to turn on a motor until the GPIO pins read a certain combination of inputs. I used to ...
0
votes
1answer
463 views

Repairing Sudoers.so file permissions

I was messing around with permissions on my pi today and I managed to accidentally change the permissions on /usr/lib/sudo/sudoers.so to anyone can view anyone can write and nobody can execute. After ...
0
votes
0answers
46 views

Unable to start BlueJ as sudo

I am new to raspberry pi devices. I am using the minimal image of the raspbian image and access my raspberry pi zero w using MobaXterm client. The issue is, when I run BlueJ directly through terminal, ...
0
votes
1answer
481 views

Sudo unable to resolve host name (none)

Any command I put into the LXTerminal of my raspberry pi, it says Sudo unable to resolve host (none) I can’t download anything, even Sudo apt-get update How do I fix this"?
0
votes
1answer
473 views

Sorry, user root is not allowed to execute '/usr/bin/python3 [closed]

I've created a startup script in bash that calls a Python script. However when I run "sudo sh StartUpScript.sh" from the command prompt it says: "Sorry, user root is not allowed to execute '/usr/...
0
votes
1answer
40 views

Joes has replaced visudo

The title says it all... but now I want the previous Raspbian versions' default behaviour i.e., visudo to be the editor for all users when editing the /etc/sudoers file. I'm using Raspbian "Stretch".
0
votes
1answer
458 views

Can't execute sudo apt-get update / upgrade

When i try to execute sudo apt-get update i receive the error: W: The repository 'http://linux.teamviewer.com/deb preview Release' is not signed. N: Data from such a repository can't be authenticated ...
0
votes
1answer
155 views

How to add user to GUI sudo list?

When I run GUI programs like gparted or the GUI package manager, it allows me to enter the password for root or pi when it requires sudo privileges. How can I add a user to this list? I added a user ...
3
votes
1answer
2k views

How can I connect to the SFTP server with sudo via WinSCP?

I want to use WinSCP to connect to the Raspberry Pi standard SFTP server. I also need to have root access. How can I do this without logging in as root (using sudo)?
0
votes
1answer
1k views

How do I grant sudo privileges to an existing user?

I am using vnc viewer on Windows 10. user: pi I am lost, please help. What I Have Tried: *sudo chmod 777 ** also .. sudo nano /etc/sudoers adding the following line just like "root ALL=(ALL:...
1
vote
1answer
425 views

Run shell script from PATH using root

I have added a shell script to my ~/bin folder. When I type the script name normally in the terminal it finds the script just fine. However, when trying to launch the script using the sudo prefix, I ...
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 ...
2
votes
0answers
563 views

run startx not as root

Scenario: So I want to run startx. The problem is, it won't let me write to tty0 Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) so I tried to run sudo startx, ...
0
votes
1answer
939 views

cannot execute any command using sudo

I cannot execute any command using sudo. I get this error: pi@raspberrypi:~ $ sudo apt-get update sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to ...
2
votes
2answers
8k views

sudo error - “Structure needs cleaning”

On my Pi Zero, if I issue a sudo su I get the following: $ sudo su sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so: Structure needs cleaning ...
0
votes
1answer
151 views

pi not belonging to sudo and adm will sudo anyway

I don't want pi to be able to use sudo on a recently installed Raspbian on PI 3. I made the following unsuccessful attempts: removed pi from sudo group (and made sure it indeed does not belong to it)...
0
votes
1answer
521 views

Make Error (trying to install openOCD)

I am having issues installing openOCD. I followed this tutorial and everything works perfectly until I try to make the file. I am getting these warnings and errors: Makefile:4314: warning: overriding ...
0
votes
1answer
597 views

script works in command line but doesn't in shell

I am using scapy to send a packet. which works fine in command line under the code. send(IP(dst="www.google.com")/ICMP()) But when I try to send it inside shell it throws an error. The code I am ...
-1
votes
2answers
861 views

sudo command is asking user's password [closed]

I changed the default username using usermod. and now whenever I type a sudo command it requires a password. I do it only when it is the first time I type sudo. further it does not require any ...
3
votes
1answer
5k views

Pi3 “unable to resolve host” message

I have a message saying:"sudo: unable to resolve host (myhostname)" each time i write a command. My hostname do not contain any capital letter or number. thank you
1
vote
1answer
57 views

Contradictory advice in visudo comments; is one way right?

This question arises on a Pi running RasPBX, which is Rasbian + Asterisk, but I think it will be the same under straight Raspbian. I run certain admin functions remotely against the PI from a Windows ...
0
votes
1answer
682 views

Adding new user to sudoers file breaks sudo completely / how to add a new user with the same privileges as pi

I switched from the arch Linux image to the latest Debian Jessie lite 2017-01-11 image and added a new user as root. # adduser sampletext Then I added on the sudoers-file a new line with: sampletext ...
2
votes
2answers
10k views

Sudo has stopped working : sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'

I have a weird issue with my Raspberry pi - sudo has stopped working. Every time I try to run a command using sudo, i get this: sudo: error in /etc/sudo.conf, line 0 while loading plugin `...
1
vote
1answer
125 views

Removing sudo from Pi default user

I have strange bahaviour from my Pi. My /etc/sudoers looks like: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead ...
-1
votes
1answer
246 views

Unable to use Sudo and Could not resolve 'mirrordirector.raspbian.org'

I could not use sudo function in my rasbian and when i try to update or upgrade using my terminal i am incurring following error pi@raspberrypi:~ $ sudo sudo: /usr/bin/sudo must be owned by uid 0 ...
-1
votes
1answer
155 views

List of common alias commands [closed]

I had/have Raspbian and used the LXDE desktop environment. Many posts will commands to enter in and not use the GUI. I took a quickie online video crash course on using linux and being an admin. ...
3
votes
4answers
11k views

Disable sudo for user Pi (or require root password)

I'm pulling my hair out over this thing. Using Raspberian here. So I'm trying to restrict the Pi user from being able to use sudo without the root password. After heavy searching, I gave up on that, ...
0
votes
2answers
908 views

Can't get “sudo apt-get update” to work! [NOOB]

Noob here... When I run "sudo apt-get update" i get: 0% [Connecting to archive.raspbian.org (5.153.255.206) ] [Connecting to archive.raspberrypi.org (93.93.128.133)] Err http://mirrordirector....
1
vote
2answers
9k views

PHP can't execute sudo script (www-data is allowed to sudo commands)

Can anyone of you tell me why this doesn't work? When i open the file doesnt run anything :( This is my php file: <!DOCTYPE html> <html> <head> <title>Restarter ...
1
vote
0answers
553 views

“Dieser Vorfall wird gemeldet” - “This will be reported” - OK, but where?

I'm currently creating a little community for our RPi in our student community. I created a group called community and put the four new users in it. Now I tested all users and they work fine. I didn't ...
1
vote
1answer
823 views

How to permanently delete this line in Kernel IP Routing table

I have a problem to delete line in next routing table. Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 160.99.37.11 0.0.0.0 ...
0
votes
0answers
63 views

Log in on startup with skipped authorization

I build a babycam using this article. I am using a Logitech C170 Universal USB webcam. It does work just fine. But there is a thing that is concerning me. In this article, I found out how you can ...
0
votes
1answer
206 views

Pi running dnsmasq can't resolve own hostname

I have a Pi 1 B running dnsmasq as name server for my home network. This setup works great for me and has been much more stable than letting my Asus router handle it. Lately – however – I have ...
4
votes
2answers
8k 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 ...
1
vote
0answers
208 views

My user “pi” is a sudo user but cant run the sudo command in LXTerminal

This is what happened: I tried to enter any sudo command (e.g. sudo visudo) and entered Pi's default password(raspberry if you don't know) and this is what it came up with: pi@(none) ~ $ sudo apt-...
0
votes
0answers
108 views

sudo apt-get update fails

pi@raspberrypi~ $ sudo apt-get update E:The method driver /usr/lib/apt/methods/https could not be found
1
vote
2answers
1k views

Python doesn't recognize cv2 when running under sudo

I've installed opencv with python 2.7 using this tutorial. I've created a test python file and everything works fine. But when I try to run it as sudo, it throws an error: ImportError: No module ...
1
vote
1answer
318 views

How to stop halt/reboot over VNC asking for password

Since upgrading to the latest version of Raspbian, I've been having some problems with using it through TightVNC. I set up tightvncserver using the instructions in the official Raspberry Pi ...