Skip to main content
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 ...
Dmitry Grigoryev's user avatar
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 ...
Peter Green's user avatar
  • 6,486
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 ...
Bob Brown's user avatar
  • 1,037
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....
mvmn's user avatar
  • 286
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
Hani Shams's user avatar
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. ...
Steve Robillard's user avatar
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 ...
Seamus's user avatar
  • 22.1k
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 ...
colpanic73's user avatar
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 ...
Milliways's user avatar
  • 60.1k
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 ...
Aurora0001's user avatar
  • 6,308
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/...
Dirk's user avatar
  • 3,551
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 ...
scruss's user avatar
  • 9,068
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::...
Aloha's user avatar
  • 7,156
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 ...
Impulse The Fox's user avatar
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.
Craig's user avatar
  • 3,014
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 ...
goldilocks's user avatar
  • 58.9k
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 ...
Ron K.'s user avatar
  • 320
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 ...
Nathan Smith's user avatar
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 ...
joan's user avatar
  • 71.1k
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 ...
Shan-Desai's user avatar
  • 1,531
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 ...
Hydraxan14's user avatar
  • 1,836
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 ...
Peter Hansen's user avatar
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 ...
goldilocks's user avatar
  • 58.9k
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 ...
AlexOnLinux's user avatar
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 ...
Seamus's user avatar
  • 22.1k
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 ...
Sohail's user avatar
  • 163
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 ...
Dmitry Grigoryev's user avatar
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
CoderMike's user avatar
  • 6,992
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 ...
SDsolar's user avatar
  • 2,348
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 ...
user3169632's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible