Questions tagged [sudo]

Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

Filter by
Sorted by
Tagged with
-1 votes
0 answers
31 views

Force delete Adobe Programms

I have bought an Ubuntu PC with illegal Adobe software on it, and even with sudo I can not delete those files Example: sudo chmod ugo+w Adobe/ Error: chmod: changing permissions of 'Adobe/': ...
user avatar
0 votes
1 answer
35 views

running systemctl via ssh without asking for password

I want to run ssh without asking for password and invoke systemctl without password i tried doing the following: ssh -t <user>@<host> "echo <password> | sudo -S systemctl status ...
user avatar
  • 1
0 votes
1 answer
17 views

Domain Group Not able to Sudo

I am facing an issue with sudo for AD group users. I have added following lines to /etc/sudoers file using visudo %domain\ admins ALL=(ALL:ALL) ALL ----- (This Works) %domain\ Users ALL=(ALL:...
user avatar
  • 1
0 votes
0 answers
13 views

Failed to install wine from Wiki Ubuntu 20.04

I followed the steps from the official wiki (https://wiki.winehq.org/Ubuntu) but when I used sudo apt update again the following error occured: E: Widersprüchliche Werte gesetzt für Option Signed-By ...
user avatar
-1 votes
0 answers
42 views

Username not in the sudoers file, tried every suggestion doesn't solve it [duplicate]

I am using ubuntu( 22.04 LTS) on VMware workstation 16 player The issue is: is not in the sudoers file. This incident will be reported and this is the only user account that I have Can't get root ...
user avatar
0 votes
0 answers
23 views

Sudo command not working while i change permissions to etc directory [duplicate]

I got the following error while trying to execute sudo command. Please suggest a solution sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize ...
user avatar
1 vote
1 answer
66 views

steam is not in the sudoers file error when Installing steamcmd on fresh ubuntu server 22.04 LTS

While attempting to setup a valheim dedicated server on Ubuntu 22.04 LTS (GNU/Linux 5.15.0-39-generic x86_64) I am trying to run these instructions to install steamcmd: Create a user account named ...
user avatar
0 votes
0 answers
18 views

Sudo commands take to long to execute after run VPNC

I'm using VPNC to connect to my company's vpn, and after start the .conf all the sudo commands on ubuntu 20.04 become slower, kill (or deactivate) the vpnc process solve this problem.
user avatar
0 votes
1 answer
49 views

How to make unaccessible /root/ directory for other admin users?

By using sudo command, other admin users can get access to the /root/ directory, using their credentials. How to make it impossible ?
user avatar
0 votes
1 answer
21 views

Git pull and vpn asking for old root password

I changed the system password recently. Whenever I am trying to do a git pull or a vpn connection, I am asked for the "previous" Ubuntu password. May I know why this is happening?
user avatar
  • 165
0 votes
0 answers
13 views

How to solve focal-security InRelease' does not have a Release file? [duplicate]

I am a student studying ubuntu, and I got a problem as below after I tried to install a Jupyter Hub on the cloud server. Every time I run this command I am getting this error message. Can someone ...
user avatar
0 votes
1 answer
34 views

systemctl still asking for password even with sudoers

My /etc/sudoers josh ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart servicename.service running systemctl restart servicename.service still asks for password. Does anyone have any ideas? Running ...
user avatar
  • 33
0 votes
0 answers
25 views

sudo apt update problem [duplicate]

valenton@valenton:~$ sudo apt update E: Conflicting values set for option Signed-By regarding source https://dl.winehq.org/wine-builds/ubuntu/ jammy: /usr/share/keyrings/winehq-archive.key != /usr/...
user avatar
0 votes
0 answers
22 views

creating REAL SuperUser in ubuntu

I created a user and runusermod -aG sudo usernamecommand. I run visudo and add this line to code username ALL=(ALL:ALL) ALL but still if i want extract some file in explorer or delete something i get ...
user avatar
0 votes
0 answers
28 views

Problem updating Ubuntu 20.04

I am trying to update my Ubuntu using sudo apt update which leads to error due to The following signatures couldn't be verified because the public key is not available I have tried using ` sudo apt-...
user avatar
0 votes
0 answers
53 views

Why does ```sudo gnome-text-editor``` throw GLib-GIO-CRITICAL error?

Whenever I try to launch a system file to edit it using sudo gnome-text-editor, I get the error (gnome-text-editor:64141): GLib-GIO-CRITICAL **: 17:47:31.731: g_dbus_connection_emit_signal: assertion '...
user avatar
1 vote
1 answer
79 views

`sudo` command isn't working in Ubuntu 20.04

I need to install pymol on Ubuntu 20.04 and when I am using sudo apt-get install -y pymol it gives an error: username isn't in the sudoers file. This incident will be reported. Does anyone know how to ...
user avatar
0 votes
0 answers
22 views

Crontab will not perform any tasks

I have a python file that has to be run with sudo elevation every 6 hours. I created the cronjob using sudo crontab -e and then added the entry: 0 */6 * * * cd /home/timeflow/backup && sudo /...
user avatar
  • 1
0 votes
0 answers
163 views

sudo tasksel install ubuntu-desktop doesn't work

After I type this command and the password nothing happens.
user avatar
4 votes
1 answer
213 views

Is it a good thing to run virt-manager as sudo?

I just installed qemu-kvm and virt-manager. But when i run virt-manager by clicking the icon it is not connecting to kvm. But when i run $ sudo virt-manager KVM connects. i've been told that running ...
user avatar
0 votes
0 answers
109 views

E: Package 'hibernate' has no installation candidate

Goal: To follow this answer. I've tried with no difference made: sudo apt update sudo apt-get update (base) me@ubuntu-pcs:~$ sudo apt install pm-utils hibernate Reading package lists... Done Building ...
user avatar
0 votes
2 answers
98 views

I Accidentally deleted my /etc/sudoers file

I have no backup. I'm incredibly unknowledgeable, so if anyone could give a beginners guide to this issue that would be amazing this is the error that is displayed when using any sudo commands : sudo: ...
user avatar
  • 1
1 vote
0 answers
19 views

Sudo: /etc/sudo.conf is world writable [duplicate]

I used chown -R 777 / and now i cant open Firefox and root account How can i fix it? Im a newbie btw
user avatar
  • 11
0 votes
1 answer
40 views

Can't Open `nautilus`

I opened nautilus using $ sudo nautilus / and deleted some files at /usr/share (Discord related files) but after that i tried to open nautilus by clicking the icon and it don't open. i got no idea ...
user avatar
1 vote
1 answer
55 views

Broken ubuntu after sudo apt dist-upgrade?

I was trying to install PHP on my Ubuntu and did a sudo apt dist-upgrade without seeing what was gonna be changed. After that I suddenly couldn't access settings, files or connect to internet they ...
user avatar
0 votes
0 answers
25 views

E: GPG error: Signed file isn't valid, got 'NODATA' (does the network require authentication?) [duplicate]

I was trying to install openjdk-17-jdk and MySQL in vncveiwer on my mobile (my connection is to the localhost,I don't have laptop/pc) so ran the command: root@localhost:~# sudo apt-get install openjdk-...
user avatar
0 votes
1 answer
28 views

Your authentication attempt was unsuccessful (for sudoer)

After installing Ubuntu I have created a new user and gave it all privileges in /etc/sudoers: user2 ALL=(ALL:ALL) ALL However now user2 cannot do admin tasks from GUI, like formatting a disk ...
user avatar
  • 475
0 votes
0 answers
21 views

Ubuntu sudo su error [duplicate]

I ran the following command on my root folder in ubuntu: sudo chmod -R myUsername:myUsername ./ Now my sudo stopped working. When I try sudo su I'm getting this error: sudo: error while loading ...
user avatar
0 votes
0 answers
19 views

libopenmpt-modplug1:amd64 [duplicate]

dpkg: unrecoverable fatal error, aborting: files list file for package 'libopenmpt-modplug1:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) How can I fix this. ...
user avatar
0 votes
0 answers
37 views

Is running a browser as group via sudo dangerous?

Suppose that internet is a group I have created. Is it dangerous to run e.g. Firefox via sudo -g internet firefox? I am 99% sure it's not, but wanted to make sure since I am doing that often and I ...
user avatar
0 votes
1 answer
47 views

Error, when I go the the root sudo -s

New to Linux. I'm using: uname -r 5.15.0-30-generic lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy First I ...
user avatar
  • 3
0 votes
3 answers
82 views

Vim is opening with Vi when I use Sudo - why?

I use neovim. I changed my .zshrc to open nvim when I type vim in the terminal. My configuration is from my Mac where I didn't use Sudo much (now I use Ubuntu, I use sudo all the time). When I do sudo ...
user avatar
  • 13
0 votes
1 answer
100 views

User in sudo group can't use sudo in Ubuntu 20.04

I'm currently facing a problem when I use my sudo permission. I understand somebody faced this problem before, e.g this question, and followed some steps to resolve but unsuccessful. FYI, before I can ...
user avatar
  • 191
0 votes
0 answers
122 views

Why can't I paste multiple sudo commands in Ubuntu 22.04?

I just installed Ubuntu Server 22.04 and SSHed in. I'm not able to paste multiple sudo commands as I could with Ubuntu Server 20.04. This feels to me like a security feature that I don't want. ...
user avatar
  • 197
0 votes
0 answers
130 views

xhost: unable to open display ""

I'm trying to use the -S method to run a sudo command user@vmi804792:~$ echo ***** | sudo -S -v But I get this error: ***** [sudo] password for user: Error: Can't open display: unix:0 sudo: no ...
user avatar
-1 votes
1 answer
49 views

Do you need to update VLC first before installation? [closed]

I am trying to use commands to update or install VLC on Linux. I am trying to use sudo apt install vlc or sudo apt update vlc but these commands seem like they are not working.
user avatar
0 votes
1 answer
38 views

Get back sudo permission after accidentally commented all lines in file /etc/sudoers.d/username

I'm having an issue on a Ubuntu 20.04 server. I accidentally commented out all lines in /etc/sudoers.d/username after reading this thread: https://superuser.com/a/1311042 because I recently noticed ...
user avatar
  • 680
0 votes
0 answers
207 views

Why does "sudo apt update" cause a series of 403 connection errors?

Why does sudo apt update cause a series of 403 connection errors? I have a Ubuntu 22.04 virtual machine using VMware on a Windows 10 Enterprise computer. Part of setting things up requires I run the ...
user avatar
  • 111
0 votes
0 answers
32 views

Files created with "sudo" only are accessible by user

I have a sudo user, and whenever I use sudo to create, move, or copy a file to any destination (even user's home dir) the file is only accessible by root with the following permission: -rw------- 1 ...
user avatar
0 votes
0 answers
29 views

auto run a script with sudo on specific user after start up

can anyone help me, I'm basically want to run wpa_supplicant -B -i wifiiface1 -c /etc/wpa_supplicant/wpa_supplicant.conf only when logging in with the user "user1", automatically. so I made ...
user avatar
0 votes
0 answers
10 views

How to get latest sudoers and sshd_config after Ubuntu update? [duplicate]

Just updated to Ubuntu 22.04 LTS. During the update it warned me that I modified the sudoers and the sshd_config files (which I did). For the sudoers file, no merge option was provided and for the ...
user avatar
  • 1
0 votes
0 answers
21 views

Unable to add successful sudoer entry for single command

I'm attempting to add an entry to /etc/sudoers to run a specific command that needs sudo permission but I don't want it to require a password. But no matter what I've tried, I can't get it to have ...
user avatar
  • 137
1 vote
0 answers
22 views

Fix user is not in sudoers file without recovery mode

I have a virtual machine running on Ubuntu Desktop 18.04.5 that is running in an air gapped system and I do not have physical access to it. Due to some misconfiguration, the only user in the VM is now ...
user avatar
-1 votes
1 answer
41 views

How to undo autoremove [duplicate]

I am a beginner at using Ubuntu, I don't know the commands, I typed sudo apt autoremove to remove python. My desktop is gone, it is showing black screen. What should I do next, could please someone ...
user avatar
0 votes
0 answers
59 views

How to undo sudo apt autoremove

I typed sudo apt auto remove. Now my GUI is not loading and black screens. How can I return to my original Ubuntu GUI can someone tell me? Thanks.
user avatar
0 votes
1 answer
45 views

I accidently removed visudo from /usr/sbin/ How do I recover it?

I was trying to install cypress in wsl. While I was following the official documentation of cypress to install in wsl, I accidently removed the visudo from /usr/sbin/ Without it I cannot install and ...
user avatar
0 votes
0 answers
195 views

sudo su command not working su: failed to execute root: No such file or directory

su: failed to execute root: No such file or directory
user avatar
0 votes
0 answers
61 views

bash.bashrc alias fail: Why?

This is a permutation of the question here. This question differs in that (a) it relates to commands entered as root in a terminal as opposed to commands entered as a non-root user by invoking sudo ...
user avatar
  • 321
0 votes
0 answers
22 views

sudo apt install: Always installs old packages [duplicate]

I wanted to run the yarn install command but then it told me that my nodejs was outdated. I checked the website to see what the latest version was and its 16.14.2 LTS. However, when I run node --...
user avatar
0 votes
0 answers
16 views

sudo apt install: "you have held broken packages" error [duplicate]

I wanted to completely wipe neovim from my computer so i manually deleted everything that had 'nvim' or 'neovim' in the name in my file explorer. I tried reinstalling it only to get this error: sudo ...
user avatar

1
2 3 4 5
55