All Questions
13 questions
17
votes
6
answers
186k
views
How to change user pi sudo permissions; how to add other accounts with different 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 ...
7
votes
2
answers
19k
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 ...
5
votes
1
answer
13k
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)?
3
votes
1
answer
5k
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
2
answers
472
views
Sudo still works despite removing my user from group
I just installed the April 4th 2022 edition of Rasberry Pi OS and added a root password in addition to my user password. I also did..
deluser <userme> sudo
I tested my new security adjustment ...
1
vote
0
answers
54
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
1
answer
601
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
2
answers
759
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
1
answer
2k
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 ...
0
votes
1
answer
5k
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:...
0
votes
0
answers
538
views
Cannot run PulseAudio as root (sudo)
I have developed a console application in .net 6 which uses a library that needs direct access to the gpio-pins of the Pi.
The Pi is running the latest Pi OS Lite x64.
Edit: This is the library ...
0
votes
0
answers
2k
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: ...
-1
votes
1
answer
1k
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 ...