21
votes
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
This vulnerability can be trivially tested:
To test whether your version of sudo is vulnerable, the following command can be used:
sudoedit -s /
A vulnerable version of sudo will either prompt for ...
20
votes
Accepted
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
While there are exceptions, generally stable releases of Linux distros backport important security fixes rather than packaging new upstream versions. They do this because the new upstream versions ...
18
votes
Accepted
Sudo permissions disaster
You didn't do anything wrong during setup. By default, user "pi" can issue sudo commands with no password; that's the way Raspbian is released. If you haven't done very much other customizing, just ...
16
votes
Disable sudo for user Pi (or require root password)
Just remove the NOPASSWD from file /etc/sudoers.d/010_pi-nopasswd
Change it from :
pi ALL=(ALL) NOPASSWD: ALL
to :
pi ALL=(ALL) ALL
13
votes
update problem with apt-get after new install of OS
You've asked a good question - one that's a potential concern to all RPi users. I'm still working through this - I may not have a complete answer now, but I'll post what I've learned now, and update ...
11
votes
startx: command not found
This is what I did for a basic "no DE (desktop environment)" setup. There are probably better posts out there for specfic DEs. But this post seems to be about simple Xorg setup and being able to run ...
8
votes
startx: command not found
The steps below install PIXEL, the official Raspbian desktop environment included with the full version of Raspbian.
After installing Raspbian Lite, setup your password, enable ssh, configure Locale ...
7
votes
Accepted
How can I connect to the SFTP server with sudo via WinSCP?
This is easy. By default the stfp-server of a Raspberry Pi is located at: /usr/lib/sftp-server, so we need to get WinSCP to execute it with sudo.
Go to your WinSCP profile (Session > Sites > Site ...
7
votes
Accepted
How do I make sudo!! add a space after sudo?
You need to use
sudo !!
instead of sudo!!. This is intended behaviour. The !! history expansion, as stated in the documentation:
designates the preceding command. When you type this, the ...
7
votes
Accepted
Error in apt-get update
All the repository URL's are in the apt source files.
The main source file is /etc/apt/sources.list. You can edit the file with e.g. nano to remove the offending 'etcher' line(s):
sudo nano /etc/apt/...
6
votes
Accepted
Pi3 "unable to resolve host" message
Sometimes, even if you've changed the host name via raspi-config, the settings don't stick. To make it permanent:
sudo nano /etc/hosts
and change the line that says
127.0.1.1 raspberrypi
to
...
6
votes
Accepted
Accessing EXPORTED Environment Variables in Python
The problem is the use of sudo. sudo will clear environment variables by default.
You can use sudo -E (or --preserve-env) to not clear the environment. This can also be set in your sudoers file.
5
votes
Disable sudo for user Pi (or require root password)
One of the first things I do with Raspbian is just eliminate the pi user. I presume it was a decision with the primary use case for the OS being teaching grade school kids about computers and trying ...
5
votes
sudo error - "Structure needs cleaning"
"Structure needs cleaning" has happened on my pi's external drives, and I've fixed it with:
sudo umount /dev/sda1
sudo fsck -y /dev/sda1
The "-y" flag instructs fsck to automatically fix any ...
5
votes
Sudo unable to resolve host name (none)
Have a look at nano /etc/hostname
There you should find one line with the name of your machine.
Then have a look at nano /etc/hosts
There you should find two lines. One localhost and one with your ...
4
votes
Sudo unable to resolve host name (none)
The problem manifests itself when a command is issued under sudo. For example:
$ sudo apt autoremove
sudo: unable to resolve host the_name: Name or service not known
Reading package lists... Done
...
4
votes
Accepted
List of common alias commands
As I don't think this exactly answers your question, I'd prefer to post this as a comment but I don't yet have the reputation to do so, my apologies.
Although this would be a great convenience, I ...
4
votes
pi not belonging to sudo and adm will sudo anyway
I was able to prevent sudo from working for pi by using incorrect syntax in the file /etc/sudoers/sudoers.d/010_pi_nopasswd
If you've removed pi from the sudo group and you don't want to use the ...
4
votes
sudo apt-get not working
If this isn't a transitory problem with the server in question, you may be in a situation where IPv6 isn't being routed for you. In that case, you could force IPv4 routing per ethanol100's ...
4
votes
sudo: command not found
If sudo is not installed and you don't know the root password, the only way would be to attach your USB stick to another PC and clean it up.
If sudo is installed, then it may be a path setting ...
4
votes
Accepted
How to configure sudo to ask for user password?
Edit /etc/sudoers.d/010_pi-nopasswd and remove NOPASSWD word from it.
Be careful if you edit it using a regular text editor: if you make a mistake, save the file and quit, you will end up with a ...
4
votes
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
If you’ve updated then it is already fixed.
Fixed in version 1.8.27-1+deb10u3.
https://www.raspberrypi.org/forums/viewtopic.php?t=301106
3
votes
How to change user pi sudo permissions; how to add other accounts with different permissions?
May 2018, This is still acccurate in concept but the procedure has changed with later versions:
Firstly, the files should be directly edited in vi or nano or leafpad or emacs - whichever is your ...
3
votes
sudo error - "Structure needs cleaning"
The fsck worked. I had to put the micrSD card into an adapter and load it into the SD Card socket of a Linux laptop.
There were two partitions on the card, /dev/sdb1 and /dev/sdb2, so I ran the ...
3
votes
Accepted
Adduser command missing
The Foundation's documentation make it sound that adduser should be present on a recent Raspbian:
Create a new user
You can create additional users on your Raspbian installation with the adduser ...
3
votes
Sudo permissions disaster
The Answer by Bob Brown is correct but if all you want to do is remove password less sudo just delete the 010_pi-nopasswd file.
This can be done on a Linux computer.
You could also log in to a root ...
3
votes
sudo "broken" - getting PAM error messages
The update with the journal logging gives some more details but it is difficult to interpret it without having access to the system. My first idea is that there is a problem with [...required)pam_unix....
3
votes
Edit file that requires sudo permissions from SSH client
You should use a proper SSH client like putty to get a Secure SHell on the Raspberry Pi. There you can execute all commands, also sudo.
3
votes
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
Debian's sudo was fixed in 1.8.27-1+deb10u3 on January, 20th (almost 7 weeks ago). That fix "trickled down" into Raspberry OS almost immediately.
If you update your system regularly, you ...
2
votes
run startx not as root
I have same issue at DietPi.
I will give you many tips, so you could solve that!
Add group (I could solve that only doing this)
tty requid that your need belong tty group, so type this with sudo or ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sudo × 138raspbian × 40
python × 14
root × 13
apt × 10
ssh × 8
update × 8
gpio × 7
pi-3 × 6
linux × 6
bash × 6
permissions × 6
pi-2 × 4
raspbian-stretch × 4
software-installation × 4
raspberry-pi-os-buster × 4
user × 4
networking × 3
boot × 3
pi-4 × 3
audio × 3
rpi.gpio × 3
debian × 3
script × 3
node.js × 3