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
866 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
405 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
38 views

Server 19.10 on Raspberry Pi 4 defaults to root?

I've successfully installed Server 19.10, then got a desktop (Lubuntu) going on a single Raspberry Pi 4 (4gb). I went with the 32-bit version, having heard the 64-bit is not very stable. (Please ...
1
vote
0answers
104 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
728 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
246 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
433 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
454 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
567 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
71 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
451 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
294 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
132 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
482 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
1k 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
111 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
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
678 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
289 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 ...