We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
811 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, ...
2
votes
0answers
386 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 ...
1
vote
0answers
88 views

How to run a graphical program from a restricted user

I have two users. admin can see everything. pi is restricted. I have a tkinter python application. pi must be able to run the program, but it cannot read any of the files directly. There is a data....
1
vote
0answers
703 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
0answers
241 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-...
1
vote
1answer
389 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 ...
1
vote
0answers
443 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
558 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
0answers
45 views

PWM without root access (Navio2)

We use the Navio2 sensor hat from Emlid. These boards are used for a class where students develop flight software (not using Ardupilot or PX4). We roll our own framework which provides some basic ...
0
votes
0answers
210 views

Running NextCloud on HTTPS/SSL with LetsEncrypt

I have successfully installed Nextcloud on a Pi3 using snap sudo snap install nextcloud. Confirmation follows promptly: nextcloud 15.0.10snap3 from Nextcloud✓ installed . Now this tutorial: ...
0
votes
1answer
206 views

sudo with WS2812 and Raspberry Pi

I'm trying to use the Neopixel Adafruit library with the WS2812 strip. Everything works great however there is something that I have not been able to do. I'm working on a project that requires ...
0
votes
0answers
121 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
443 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
1answer
916 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
91 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
231 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 ...
0
votes
0answers
1k 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 ...
0
votes
0answers
2k 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 /...
0
votes
1answer
606 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 ...
-1
votes
1answer
278 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 ...