Questions tagged [sudo]
The sudo command allows users to run programs with the privileges of a different user (normally the root user). Use this tag for questions related to configuring and using the sudo command.
2,892
questions
0
votes
2
answers
887
views
Is it possible to get the TeamViewer random password in an other way than by TeamViewer window interface?
On my lubuntu 22.04 distribution is installed TeamViewer (Classic) version 15.41.7.
I know that for enable a remote assistance session by TeamViewer I have to send the Code ID and the session password ...
0
votes
0
answers
75
views
how to create sudo password
I downloaded Ubuntu 22.04.03 on to Virtual Box. I am able to log in using the created username and password. "Sudo apt update" requests sudo password. The initial password created on ...
0
votes
0
answers
54
views
Skip a download in terminal
I am downloading four files (8gb each), I already have 2nd files and i don't want to download it again. How can i just skip it. I don't want to cancel the download as it will cancel the 3rd and 4th ...
0
votes
0
answers
111
views
Administrator option is disabled for domain accounts in Ubuntu 22.04
I am the domain admin. My domain account in my system have administrator option disabled. I have tried adding the user to sudoers. That didn't work. Any other way? When opening the software centre or ...
1
vote
0
answers
109
views
Autoconfigure PCIe UART Card at boot - Ubuntu 22.04
I am trying to configure a Serial PCIe card (Exar XR17V3521 Dual PCIe UART) for use in DOSBox 0.74-3. The card uses the XR17V35X kernel module.
Everything works fine, as long as I run setserial /dev/...
0
votes
0
answers
78
views
Sudo access Ubuntu 22.04 LTS on PI4
I am the only sudo user, i no longer have sudo access and pi install does not use grub. how do i recover and get me back as a sudo user
0
votes
0
answers
128
views
sudoers.d file not working for a non-sudo user using three commands without password
I want username steamy, a non-sudo user, to execute three commands (i.e., systemctl start|stop|restart factorio) without entering a password.
I am using sudoers.d file called factorio:
$ sudo ls -l /...
1
vote
2
answers
130
views
Where can I add to the ***universal*** path?
I'm a script kiddie of sorts and enjoy writing bash scripts for things, and I keep them in a repository that I synchronize, and on my personal computers I keep it in a home/otherStuff/customBin folder,...
0
votes
0
answers
29
views
How to fix repository error? [duplicate]
I am using Ubuntu 23.04. When I do the sudo apt update, it gives me following repository error. How can I fix it?
Hit:1 http://pt.archive.ubuntu.com/ubuntu lunar InRelease
Hit:2 http://...
0
votes
0
answers
4k
views
I get nginx.service: Failed with result 'exit-code' when i want to install nginx on a ubuntu server
I use: sudo apt update, sudo apt install nginx but i get this:
Preconfiguring packages ...
Selecting previously unselected package libdeflate0:amd64.
(Reading database ... 27812 files and directories ...
1
vote
1
answer
115
views
How to make the current working directory be highlighted in color? [duplicate]
my ns-3 is installed inside the source folder i.e., home/my_username/source/ns-3.39, when I try to ls inside the ns-3.39 directory, it gives:
ls: cannot open directory '.': Permission denied
So I have ...
0
votes
0
answers
632
views
I need help setting my password in a distrobox container
For some reason my other post got downvoted and no replies so I'll try again. I set up a distrobox container for ubuntu 23.04. However, I cannot set the password and therefore cannot run and sudo ...
0
votes
0
answers
16
views
i install my pc ubuntu 22.04 and sudo apt update isnot properly done [duplicate]
Err:1 http://mirrors.ubuntu.com/mirrors.txt jammy InRelease
Temporary failure resolving 'mirrors.ubuntu.com'
Err:2 http://mirrors.ubuntu.com/mirrors.txt jammy-updates InRelease
Temporary failure ...
0
votes
0
answers
15
views
NO_PUBKEY B53DC80D13EDEF05 [duplicate]
When i run sudo apt update i get this error
Err:13 https://packages.cloud.google.com/apt cloud-sdk InRelease
The following signatures couldn't be verified because the public key is not available: ...
0
votes
0
answers
26
views
sudo apt update Received 11 errors. Don’t know what to do [duplicate]
When I wrote sudo apt update I received 11 different errors. I took a screenshot could someone help me fix this. I’m extremely new to Linux bash commands. I just took a 5hour class on the “50 most ...
1
vote
0
answers
27
views
I have 2 problem when I write the command: sudo apt update [duplicate]
E: Malformed entry 4 in list file /etc/apt/sources.list (absolute Suite Component)\
E: The list of sources could not be read.
0
votes
0
answers
35
views
incorrectly edited the /etc/sudoers file and lost sudo priviledges [duplicate]
While trying to figure out why another user doesn't have sudo privileges I got rid of % in %sudo ALL=(ALL:ALL) ALL and after doing I myself cannot lost sudo access. I get the message
"xxxx is ...
1
vote
0
answers
908
views
VSCode not responding after installing it on Ubuntu 22.04
I am a new Ubuntu user running Ubuntu 22.04.03 on a dual booted X1 Carbon 7th gen. I have attempted to install a variety of versions of VSCode (1.80, 1.81) in a variety of way (apt, snap, apt with ...
1
vote
0
answers
778
views
Allow user to run specific commands
How do I enable a user to run specific sudo commands without the need to type a password?
I already tried the following:
I have a script /usr/local/bin/perform-update with the rights -rwxr-xr-x 1 root ...
1
vote
1
answer
2k
views
/run/user/1000 is not owned by UID 1000, as it should
So I have this error going on, and its the origin of a lot of errors with snap that I'm recieving. So when I execute:
$ systemctl status display-manager
Recieved some text and:
gkr-pam: unable to ...
0
votes
0
answers
76
views
ubuntu server can't connect to internet or use sudo after power outage
my power went out recently and when it came back on, I'm not longer able to connect to the internet from my ubuntu server. I can still ssh into the server remotely from my laptop while I'm on my home ...
-2
votes
1
answer
187
views
im unable to run sudo command
sudo: /etc/sudo.conf is owned by uid 1000, should be 0
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
im unable to use sudo probably when i tried to change the acxess ...
0
votes
2
answers
1k
views
/etc/sudoers is world writable in linux ssh
I tried everything but nothing works.
sudo is not working because it says:
/etc/sudoers is world writable
Can't login as the root user even if I typed the command sudo -i
chmod: changing permissions ...
0
votes
1
answer
230
views
How to make permanent changes to /etc/sudoers
I'm trying to setup a Jenkins job that need to run an executable file under sudo
I do
sudo nano /etc/sudoers
add jenkins ALL=(ALL) NOPASSWD:ALL at the end of file
CTRL + X and confirm file save ...
1
vote
0
answers
225
views
user created during ubuntu 22.04 install in virtualbox can't use sudo
New to Ubuntu and "sudo" command.I've successfully installed 22.04.2 on Virtualbox. During the install it asked for a user and password which I entered. After logging into the Ubuntu desktop ...
0
votes
1
answer
2k
views
is not in the sudoers file. this incident will be reported and authentication failure at the same time
I tried to install something with sudo but I received: ".... is not in the sudoers file. this incident will be reported". I used "su -" and "su root" to fix this problem ...
1
vote
1
answer
392
views
How to enable a non root user to substitute the file /etc/hosts by cp command, without the sudo command?
On my lubuntu 22.04 I need to change the file /etc/hosts. To do that I would to execute the command:
> /usr/bin/cp /path/to/new_hosts /etc/hosts
by a non root user without the sudo command. To do ...
0
votes
1
answer
467
views
Xubuntu Linux 22.04: "sudo apt update" does not work [duplicate]
Hello Linux Community,
I am having an issue with my "sudo apt update" command. When I run it, it gives me error messages stating that a jammy Release does not have a release file. I am ...
0
votes
1
answer
141
views
Cannot get sudo to work consistently without terminal in non interactive script
I have a shell script I wrote that needs sudo access only when needed. It uses Zenity for a GUI and runs without a terminal. The script was working fine but I had one issue with it. It uses Zenity to ...
1
vote
0
answers
102
views
Is lxqt-sudo the only valid alternative for gksudo?
since ubuntu 4.10 i always used gksudo regularly, and then, few years ago, gksudo simply disappeared from the repository, forcing me to look for old and unsupported .deb packages and install from ...
2
votes
1
answer
351
views
How to create a desktop shortcut that launches a command line program as root without requiring password
I'm trying to create a desktop shortcut that changes my monitor input by executing sudo /usr/bin/ddcutil -d 1 setvcp 60 0xF without requiring a password. I've made an entry in the sudoers.d directory ...
2
votes
0
answers
49
views
Sudo access using AD without using FQDN
I've been able to get my server setup where it will allow me to use my AD credentials to login, and sudo works as well, but only if I sign in using [email protected].
I changed the /etc/sssd/sssd/...
1
vote
0
answers
553
views
Run sudo commands in Java
I am trying to run sudo commands in Java. I have trying to create a program in Java in order to execute nmap commands in it. I am using Java 20 and I am using ubuntu 22.04 as operating system. I am ...
-1
votes
2
answers
2k
views
All users locked - login not possible
attached you can find the terminal of my homebridge account. The only account which is actually able to logon:
homebridge@raspberrypi:/var/lib/homebridge
$ su pi su: Authentication failure
homebridge@...
0
votes
0
answers
22
views
Ubuntu Studio - Suddenly issue where some applicatons need sudo to run
I'm on Ubuntu Studio 22.04 LTS and suddenly I can't run Audacity, Qjackctl, Carla or plugdata without sudo on the terminal. If I launch them from icon or from terminal with no sudo,they only appear ...
1
vote
1
answer
3k
views
How to add user to sudoers really?
Ubuntu 20.04.
I have created 2nd user and try to do:
sudo su
[sudo] password for xoleg:
xoleg is not in the sudoers file. This incident will be reported.
xoleg@oleg-HP-2004:~$
Then my other user ...
0
votes
0
answers
31
views
I install dotnet sdk-7.0 but dotnet-sdk-7.0 not found on Ubuntu [duplicate]
I use these commands to install dotnet-sdk and dotnet-runtime
# Get Ubuntu version
declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^...
0
votes
0
answers
154
views
22.04 Jammy Chnaged methods for bypassing root password prompt for some commands (Dell build)
On my Ubuntu 18.02 systems, I was able to update the /etc/sudoers file to allow root without password for specific applications. For example these entries started the Muon package manager which ran ...
0
votes
0
answers
121
views
How to allow AD group to run elevated commands from the desktop in Ubuntu 22.04
I've seen a number of similar questions, but none that quite cover my situation.
I have an Ubuntu desktop 22.04 system, setup for authentication against a Active Directory. I have a domain group ...
-1
votes
1
answer
183
views
Running VS Code as sudo in terminal gives loop error
When I try to run VS Code from terminal with this command:
sudo code --user-data-dir=~/.vscode-root --no-sandbox
I am getting gray window, and this error which goes to infinity until I stop the ...
0
votes
1
answer
330
views
How can I install Windows games from a .exe file? [duplicate]
I download a game with a .exe file name and I can't install it and so a ppsspp game emulator with also a .exe file name. So how can I go about it.
0
votes
0
answers
142
views
Need GPIO access NOT using Raspberry Pi with 22.04 LTS with proper permissions not sudo
I'm running Ubuntu 22.04 LTS on an industrial computer not RasPi with a complex Python program that requires access to GPIO pins at a location 0x0B20. This works well using sudo and portio.iopl(3) to ...
1
vote
0
answers
548
views
"sudo: unable to initialize PAM: Critical error - immediate abort" when try to run "sudo apt-get update" on Ubuntu 22.04
I am encountering an issue on my Ubuntu system when attempting to run the command sudo apt-get update. The terminal returns the following error message: sudo: unable to initialize PAM: Critical error -...
0
votes
0
answers
233
views
Sudoers, Specific Programs & Said programs arguments
I have a /etc/sudoers.d file which I want to run a program (asterisk) WITH arguments as a user (zabbix). So far I have tried:
zabbix ALL = NOPASSWD: /etc/path/to/my/script.sh
And
zabbix ALL=(ALL) ...
0
votes
1
answer
659
views
How to put sudo operations (apt-get) on a shell script? [duplicate]
I am doing several operations installing packages etc and one of those are
sudo apt-get update && apt-get install -y curl
obviously it asks my password.
Now, I would like to put all the ...
0
votes
1
answer
439
views
How to include apt in sudoers without password
I want to authorize user daniel to use apt with any arguments without enter the password. NOT apt-get or aptitude. The APT command:
sudo apt update
sudo apt dist-upgrade
sudo apt list -a <match>...
1
vote
2
answers
814
views
a process started with sudo and put in background still exist after ssh disconnect
Here is the procedure I use:
I'm connecting to Ubuntu 22.04 using ssh.
I'm editing a file with vim (or emacs) using sudo
I'm leaving the editor with Ctrl-Z
Then, I close the ssh connection. Either I ...
2
votes
1
answer
233
views
What is the best way to ensure proper installation of programs? [closed]
I've used Ubuntu for a little over 2 years now. I've recently ungraded to Ubuntu 22.04. So far, I'm very happy with it as the GUI is more like Windows PC. However, I still have a reoccurring problem, ...
1
vote
0
answers
85
views
How to run shell script as regular user and then exec sudo in shell script?
How to run shell/bash script as normal user and exec sudo no password in the script
0
votes
0
answers
186
views
umask 027 and the sudo user
This is sort of a follow on question to What permissions would change if I change umask to 027 from 022?
Our IT has changed umask from the default 022 to 077 and then to 027 after enough complaints ...