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 ...
17
votes
Accepted
Why my program won't communicate through ttyAMA0 on Raspbian (Jessie)?
Ensure terminal over serial is disabled in raspi-config
Run
sudo raspi-config
and in "Advanced" choose "Serial" (Enable/Disable shell and kernel messages on the serial connection) and disable it....
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
16
votes
startx: command not found
Jessie Lite does not contain the GUI packages just the command line. If you want a GUI you will need to install the packages to your existing SD card or reflash the card with the full Raspbian Jessie. ...
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 ...
10
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 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
sudo apt-get update Not working
Looks like it's trying to use IPv6. I bet your connection doesn't have IPv6 (yet).
Make a config file that disables IPv6.
Run the command sudoedit /etc/apt/apt.conf.d/99force-ipv4, put Acquire::...
6
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 ...
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
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
...
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 ...
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
Autorun Firefox on startup...grrrrrrr!
Ok I am giving a shot at this, try following the mentioned steps (type in your Terminal):
create a folder called 'lxsession' in your hidden folder called .config:
$ mkdir /home/pi/.config/lxsession
...
4
votes
Accepted
Accessing gpio not working as non-root. "Can't open /dev/mem: : Permission denied"
You need root privileges to access /dev/mem.
To allow access to the GPIO a new device was created called /dev/gpiomem.
/dev/gpiomem can be accessed by members of the gpio group and grants access to ...
4
votes
Accepted
Problems getting df to update on my raspberry pi
Different Raspbian Releases
Raspbian 8 Jessie closely follows Debian 8 Jessie.
As of this writing, the current version of coreutils on Debian 8 Jessie is 8.23-4
Raspbian 7 Wheezy closely follows ...
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
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 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
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sudo × 137raspbian × 40
python × 14
root × 14
apt × 9
ssh × 8
update × 8
gpio × 7
pi-3 × 6
linux × 6
bash × 6
permissions × 6
pi-2 × 5
raspbian-stretch × 5
raspbian-buster × 4
software-installation × 4
user × 4
networking × 3
pi-4 × 3
boot × 3
audio × 3
rpi.gpio × 3
debian × 3
script × 3
terminal × 3