New answers tagged sudo
1
vote
Accepted
Errors when running "sudo apt update" Ubuntu 18.04 Bionic with Hetzner
It's not an error, just an information after you update your package list.
Check the link about what do sudo apt update do.
You can try with the hint apt list --upgradable to see the upgradable list
...
- 26
0
votes
I can't login for administrator access
You most likely have the wrong password. Assuming your installation is quite fresh, and you haven't modified it a lot, I would recommend wiping the partition and re-installing it. Alternativly, if you ...
- 178
0
votes
How to solve this error `sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set` without reinstalling ubuntu?
If you find a "sudo" binary in /usr/local on a package managed (you are not running something like Linux From Scratch, you are not using a secondary, dependency-resolving source build system ...
- 331
1
vote
How to solve this error `sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set` without reinstalling ubuntu?
In your error message, it says it is coming from /usr/local/bin/sudo which is not the normal location for sudo on most Linux distributions including Ubuntu so I am guessing that you have attempted to ...
- 481
15
votes
How do I repair Ubuntu after running the command: sudo rm /*
I suggest you boot a "Live CD" to get a running host.
Then find your data. If you find it, copy it to an external disk or another host. Finally do a complete fresh install, and set up a ...
- 661
32
votes
Accepted
How do I repair Ubuntu after running the command: sudo rm /*
That command would have deleted all the links in / (and any files if you happened to have any).
Boot an install USB, mount the damaged root (change the sdxy to match your system) at /mnt:
sudo mount -...
- 16.4k
0
votes
Default username/password in preinstalled Ubuntu systems
I had the same issue and found this thread useful: https://ubuntuforums.org/showthread.php?t=2456500
The default OEM password was password. After that I was able to run "prepare shipment to end ...
- 206
0
votes
sudo: unable to allocate pty: No such device
PTY(AKA Pseudoterminal) is used for implementing terminal emulators such as xterm … It is involved in enabling the interpretation of passed data in the same way a real terminal would interpret the ...
- 18.4k
-2
votes
Accepted
0
votes
System policy prevents writing a disk image to this device
This solved the problem immediately (running as root):
adduser myuser sudo
Apparently user needed to be added to sudoers group manually.
- 557
0
votes
Accepted
How do commands determine whether we have the necessary privileges to perform an action?
The system doesn't just check if you can execute the command, there are many commands you can execute. The OS checks if whether you have the rights to make the change you're trying to make. If you do ...
- 426
0
votes
VirtualBox Ubuntu 22.04: how to add sudo rights?
Well, I just installed Ubuntu 22.10 and had the same issue. However, it appears that the Ubuntu root password is set to the same value as the default account when I created the VM in Virtual Box. I ...
0
votes
Accepted
Why does adding a user to the sudo group give him access to the sudo command?
As you can see, the /bin/sudo binary has the suid bit set as its permissions (Pay attention to the s in -rwsr-xr-x). It means no matter who invokes it, It gets run by its owner which is the root user.
...
- 53k
Top 50 recent answers are included
Related Tags
sudo × 2797permissions × 595
command-line × 487
root × 296
password × 257
apt × 221
bash × 217
scripts × 117
14.04 × 109
server × 109
users × 100
su × 92
ssh × 89
12.04 × 80
16.04 × 78
updates × 72
login × 72
visudo × 64
20.04 × 61
security × 61
software-installation × 53
python × 53
chmod × 46
18.04 × 42
package-management × 42