New answers tagged sudo
0
votes
Can't connect with ssh, Aws ec2 instance
As elaborated on in this question, the command you issued was fatal beyond recovery.
You most likely have to use your backup to restore your system.
If you don't have a backup ( :-((( ), you can ...
0
votes
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
For me this works most of the times, with the caveat that any of the above solutions might break the update or upgrade process and might need fixing afterwards
sudo killall apt apt-get dpkg
The above ...
0
votes
User in sudo group cannot use sudo command
Reboot your system
It may seem silly to post this as an answer, but I wasted ages trying to figure out why my system (Debian 12) continued to tell me that my user was not in the sudoers file even ...
0
votes
How to use a python virtualenv with sudo?
I'd like to add my answer because I stumbled across the same problem right now. But I created a shell script for a repo, and therefore I didn't want to use a hardcoded path. The following is what I am ...
2
votes
Unable to execute sudo command from ssh agent; getting "Sorry, try again", but the same password works in the server
According to a comment by Rinzwind,
"Sorry, try again" means the password is incorrect.
This is probably because the password contains special characters and a different keyboard layout is ...
Community wiki
0
votes
How to avoid using sudo when working in /var/www?
This variation is much like Lekensteyn's first solution, where www-data is given sticky read-only access, and a specific user has write access.
It also allows directory traversal in cases where you ...
0
votes
VirtualBox Ubuntu 22.04: how to add sudo rights?
Switch to the root user:
su -
Edit the sudoers file using the visudo command:
visudo
In the sudoers file, locate the line that looks like:
%sudo ALL=(ALL:ALL) ALL
Below that line, add the ...
0
votes
"Set document metadata failed" when I run sudo gedit
enter image description here
In my case, I was able to remove it by putting &>/dev/null on similar warnings.
0
votes
Using rsync with sudo
The sudo -v option doesn't seem to be working for some reason, perhaps because it's SSH, or because you disabled timeouts. Let's avoid it:
rsync -avz --stats --rsync-path="{ echo 4321; cat; } | ...
Top 50 recent answers are included
Related Tags
sudo × 2894permissions × 608
command-line × 511
root × 303
password × 272
apt × 226
bash × 225
server × 118
scripts × 118
14.04 × 109
users × 104
ssh × 98
su × 96
12.04 × 80
16.04 × 78
updates × 77
login × 71
visudo × 66
software-installation × 64
security × 61
20.04 × 59
python × 54
chmod × 47
18.04 × 42
authentication × 42