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.

137 questions
10
votes
4 answers

Disable sudo for user Pi (or require root password)

I'm pulling my hair out over this thing. Using Raspberian here. So I'm trying to restrict the Pi user from being able to use sudo without the root password. After heavy searching, I gave up on that, and now I'm trying to just disable all access to…
daviddavidson
  • 101
  • 1
  • 1
  • 3
5
votes
2 answers

sudo error - "Structure needs cleaning"

On my Pi Zero, if I issue a sudo su I get the following: $ sudo su sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so: Structure needs cleaning sudo: fatal error, unable to load plugins Any…
user3169632
  • 91
  • 1
  • 1
  • 5
3
votes
2 answers

Permission denied for GUI operations

Running Raspbian on RPi B+, I can sudo in command mode and do all operations like deleting a directory, etc. But when in GUI mode I get permession denied, although I am using the same user in both cases. What's the solution?
student1
  • 152
  • 1
  • 2
  • 7
1
vote
2 answers

Sudo unable to resolve host name (none)

Any command I put into the LXTerminal of my raspberry pi, it says Sudo unable to resolve host (none) I can’t download anything, even Sudo apt-get update How do I fix this"?
Patrick
  • 21
  • 1
  • 2
1
vote
1 answer

Removing sudo from Pi default user

I have strange bahaviour from my Pi. My /etc/sudoers looks like: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man…
VladoPortos
  • 191
  • 1
  • 7
1
vote
0 answers

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-get update sudo: unable to resolve host (none) [sudo]…
1
vote
1 answer

sudo: command not found

My USB stick is now full of backups, and I need to delete at least one to upgrade Nextcloud. I cant. I try rm -f ./nextcloud-bkp_2017* and I get: rm: cannot remove './nextcloud-bkp_20171211.tar': Permission denied So I try sudo rm -f…
user256787
  • 11
  • 1
  • 3
0
votes
2 answers

I can not have the Permission ''sudo" to execute command lines on putty!

I have a problem for permission using "sudo" on putty (connected to raspberry pi3). My usrname is: karim My password: 0000 Each time, I have got this error when executing a command line " karim is not in the sudoers file. This incident will be…
0
votes
1 answer

pi not belonging to sudo and adm will sudo anyway

I don't want pi to be able to use sudo on a recently installed Raspbian on PI 3. I made the following unsuccessful attempts: removed pi from sudo group (and made sure it indeed does not belong to it) removed pi from adm group modified pi ALL=(ALL)…
pierre
  • 1