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,927
questions
0
votes
1
answer
29
views
I want a Sudo password [duplicate]
I am being asked for my sudo password. How do I get one in the first place?
I am downloading code for using whisper on my imac. It is asking for my sudo passwordl.
1
vote
1
answer
39
views
Is there a way to allow a non root user to run netplan apply without sudo?
I'm developing a Django project and I was asked to implement a functionality that allows the admin users to change the ips on the yaml file of the hosting server, so far I manage to do so by using ...
3
votes
1
answer
156
views
User & hostname suddenly changed after update, now sudo and internet issues
Ubuntu 24.04.01 LTS
Upgraded from 22.04.01
Dell precision 7550
Notification received to upgrade and did so.
It said some things were partially upgraded, but everything was working normally for a day.
...
0
votes
0
answers
13
views
Prevent sudo ignore password policies [duplicate]
This is my /etc/pam.d/common-password file on ubuntu 22.04
password requisite pam_pwquality.so retry=3 minlen=12
password [success=2 default=ignore] pam_unix....
0
votes
0
answers
41
views
PAM Authentication Error [closed]
I'm encountering an issue with the sudo command in an IPA AD-trust environment. Specifically while logging in with Active Directory (AD) credentials works, the sudo command fails on Ubuntu versions 22....
0
votes
0
answers
18
views
Error No D-Bus When copying to usb! [closed]
I do not know how to fix it without manually pressing the play button on the disk? it works and is a new fresh install?
Does anyone have a fix to make it automatic>?
0
votes
0
answers
35
views
the find command is returning permission denied
I'm running the command sudo find . | cpio -o -H newc > ../init.cpio and it returning:
-bash: ../init.cpio: Permission denied.
I don't know how to fix this or what else to try. It works fine when ...
0
votes
2
answers
161
views
How do I access the /root folder?
How do I enter the /root folder, not the / folder?
I need to go into the /root folder to print the contents of the /root folder on a file in the home(~) folder.
I tried to do 'sudo cd root'
Here's the ...
0
votes
1
answer
317
views
NOPASSWD Sudo on Ubuntu 24.04 not working
I have setup my container with the following in my /etc/sudoers file
username ALL=(ALL) NOPASSWD: ALL
This works in previous versions, (22.04, 20.04) but in Ubuntu 24.04 I'm getting this error:
...
-1
votes
1
answer
105
views
Cannot get sudo to work for a user on Ubuntu 22.04.3 LTS
I have added user1 to sudoers group. This confirmed successful as follows:
user1 : user1 sudo
I believe the permissions are set correctly in visudo as follows:
# Allow members of group sudo to ...
0
votes
0
answers
28
views
network manager issue and sudo apt update reply ign and temporary failure resolving
enter image description here
enter image description here
Yesterday when uninstall pi-hole it ask me do you wish to remove iproutes2 and git.I thought it was the pi-hole file so i said yes and after ...
0
votes
0
answers
24
views
How to use a newer python version for root without changing the system wide installation of python? [duplicate]
I need to create a VirtualBox instance of Ubuntu on Windows 10, but I need to run python version 3.11 as root on that VM. How can I install a newer version of python to be run as root without changing ...
0
votes
0
answers
69
views
docker build requires sudo
I have a docker compose project for which I am building containers frequently. I've read the docker post-install instructions and followed all these steps, and for commands like docker ps and docker ...
1
vote
1
answer
150
views
Portal returned error: org.freedesktop.DBus.Error.AccessDenied
I need to start the browser so that other programs cannot read its files.
I run browser with group change:
sudo -g permission-yandex-browser -E yandex-browser
everything works. But when I select a ...
1
vote
0
answers
25
views
Can I unmount my data drive without losing data? [duplicate]
I messed up my system and need to wipe my system (see here: Can't use sudo anymore since running chmod: sudo: /etc/sudo.conf is world writable)
Fortunately even though I am a beginner, I have one ...
0
votes
0
answers
36
views
Can't use sudo anymore since running chmod: sudo: /etc/sudo.conf is world writable [duplicate]
Before I start, I am no Linux expert by any means, I just know the basics and am still at the beginning of my Linux/Server journey.
I messed up, I've used chmod before but now I used it in the root ...
0
votes
0
answers
30
views
Allow users to execute everything except manage specific service
I have some workers with their own computer. All of them have access in their laptops to root user in Ubuntu. I don't rely on them and I have a critical service that I need to be always running, so I ...
0
votes
1
answer
67
views
User no longer in sudoers after installing ssh
My admin account was added to sudoers and worked fine. I set up SSH and xRDP on my computer. I used the exact same username for these programs. Now when I try to sudo, it says my user is not in the ...
1
vote
1
answer
40
views
obs-studio still being listed after 'sudo apt-get autoremove obs-studio'
I've been trying to set up obs-studio on my system, however, I kept running into the (known) issue of screen capture only displaying a blank screen with the cursor the only thing being captured.
I ...
0
votes
0
answers
29
views
Sudo password unable to enter [duplicate]
unable to enter password in terminal. trying to enter stall commands, ask for password but will not allow me to enter the password. I am new to linux and assume that the password is my log in for ...
-1
votes
1
answer
80
views
Ubuntu won't let me enter my password
When I look to update or install anything with sudo. It tells me 'sorry, try again' twice and then 'sudo: 3 incorrect password attempts' but I am not even given the opportunity input a password.
...
1
vote
1
answer
68
views
Syntax error /etc/apt/apt.conf.d/5lunattended-upgrades-firefox:1: Extra junk after value
sudo apt update command is not working in the terminal in Ubuntu 24.04. Also the Software Updater app is not working, and I'm unable to update my installed software with it.
0
votes
2
answers
72
views
Username not in sudoers file and cannot run sudo commands [duplicate]
I downloaded python but when checking if pip was installed, the terminal displayed 'no module named pip'
So I found that you can download it using the command prompt 'sudo apt install python3-pip', ...
5
votes
1
answer
163
views
Can I SSH with key and then have a simple password for the sudo user?
So I have a server which I connect to with SSH and a key.
I have disabled SSH password login on my normal user. When I use sudo, it's super annoying to having to copy and paste the complex password ...
-1
votes
1
answer
64
views
How to remove Ubuntu from SSD which I don't have root privileges for?
I've tried DBAN, Gparted on a live USB, dd command to override with zeroes and random values for several cycles (which I now think was a mistake), sudo rm -rf /mnt/nvme0n1 which is my drive mounted on ...
0
votes
0
answers
20
views
Trying to enable the ability to install a specific application for a Windows game from Steam
I am playing a game from Steam that requires a separate service application to run the way I need it to, but it won't seem to allow the install on my Ubuntu 22.04 OS. Although I see a console flash a ...
0
votes
0
answers
35
views
apt update from terminal shows following pakages are upgradable but i am not able to upgrade them
I have attached screenshot for the same also i am not able to upgrade as it always shows packages can't be upgraded. i got 2 warnings as shwon in the image please help!
0
votes
0
answers
49
views
Ubuntu allows user to sudo without password even though it's not allowed + missing crontabs
1 - Problem with unprotected sudo
I have an Ubuntu 22.04.4 LTS server that runs for a few years non stop. I didn't notice anything strange during that time, as well as I didn't change any server's ...
0
votes
0
answers
54
views
how to fix unmet dependencies? [duplicate]
@ubuntu:~$ sudo apt install gnome-shell-extension-manager gnome-tweaks git curl wget sassc htop neofetch -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... ...
0
votes
0
answers
25
views
SHA256SUMS and SHA256.gpg problems
Hi: ¿where can I get the SHA256SUMS and SHA256.gpg for UBUNTU 24.04-ISO? I can not find in ubuntu.com. It is so hard to find.
Thanks
0
votes
0
answers
83
views
Ubuntu Pro Enabling anbox-cloud-appliance
Image1 iI am enabling the anbox-cloud on my machine which is Ubuntu 22.04. but when I hit the command:
sudo anbox-cloud-appliance init
it fails with the following error:
Error: running on desktop is ...
1
vote
0
answers
151
views
sudo not prompting for password despite apparently good sudoers configuration
This initially recently, seemingly spontaneously began on a particular Ubuntu 22.04 install (located on a VPS, if that matters). T'was later upgraded to 24.04, the issue continued.
What happens is ...
0
votes
0
answers
44
views
Polkit Login Screen issue in Kubuntu 22.04 lts
After yesterdays update, the login screen gets replaced by the dumbest '.. Contact system administrator' message. Ctrl alt F2 etc work fine. There are no issues in the boot messages. Syslog has a few ...
0
votes
0
answers
276
views
sudo: unable to resolve host: Name or service not known
I noticed that in my team's Docker CI sudo commands, e.g. time sudo xvfb-run coverage run -m pytest test/gui, report an error such as:
sudo: unable to resolve host runner-qwqjblm--project-1351-...
-1
votes
1
answer
403
views
How to update list from apt list --upgradeable [closed]
Listed Packages for upgrading
I can't seem to make any command work for lists; Sometimes the terminal will instruct me on what to do and it's generally easy to find tips on Google. I've tried sudo apt ...
-2
votes
1
answer
98
views
I am new to ubuntu and i am trying to install but it does not work after I write sudo apt update or sudo apt install some errors appears [duplicate]
I am new to ubuntu and i am trying to install but it does not work fter I write sudo apt update or sudo apt install some errors appears and i dont know what it means.Please help
These are the errors:
...
0
votes
0
answers
7
views
How to create an upgrade script that runs without a password [duplicate]
I installed Ubuntu on my sons laptop that he will be using for school, as such I don't want him to have the password just yet. I would still like him to be able to run these three commands to update, ...
0
votes
1
answer
69
views
Running multiple bash scripts at once
I've like 10 repos running in the same machine, I some times change machines and want to deploy them automatically and fast so I made this script to execute each repo installation file at the same ...
0
votes
1
answer
138
views
What's the real meaning of "!!" in /etc/shadow on Ubuntu
The stackexchange link says "it is not possible to login to the account using a password", but the baeldung link says "anyone can log in to the account without any password".
The ...
0
votes
0
answers
76
views
cant login as sudo --> errormessage: sudo: unable to initialize PAM: Critical error - immediate abort
i want to shorten my password via: "sudo vim /etc/pam.d/common-password", during editing this file the editor crashed.
i tried to recover it with "vim -r /etc/pam.d/common-password"...
0
votes
1
answer
70
views
Ubuntu 22.04.4 LTS cant use sudo, wifi disappear, can't reinstall ubuntu
I think I messed up, I can't use sudo, it says:
sudo: /etc/sudo.conf is world writable
sudo : /use/bin/sudo must be owned by uid 0 and have the setuid bit set
When I try to reinstall my Ubuntu, ...
0
votes
1
answer
109
views
Installed thonny using sudo but can't run from desktop
Ubuntu 22.04.4 LTS
kubuntu 22.04
I downloaded the thonny bash script from thonny git.
from terminal i typed sudo bash thonny-4.1.4.bash
it installed fine.
If I run in terminal sudo /root/apps/thonny/...
0
votes
0
answers
136
views
Writing permissions on mounted NAS in my linux machine
I have a NAS in my home with all my shared files. I want to mount this storage in my linux terminal and I have accomplished that by adding:
//192.168.0.145/TARDIS_Share /mnt/nas cifs username=...
0
votes
1
answer
73
views
Why does shell script (.sh) give different results than command line for running Flask service with sudo?
I have a sequence of commands that I run from the command line. Here are the commands and output when run from the command line:
~/bettermult $ sudo systemctl stop bettermult
+ sudo systemctl stop ...
0
votes
0
answers
75
views
Getting Access denied for administrator while trying to run a sudo command
I'm getting Access denied for the administrator while trying to run a sudo command, but the command is getting executed.
How to resolve this issue?
2
votes
1
answer
192
views
How to configure a prompt/notice to touch the YubiKey when it's used for sudo
I have configured
auth sufficient pam_u2f.so cue [cue_prompt=Tap the Yubikey to sudo]
in /etc/pam.d/sudo to be able to sudo by touching my YubiKey. When running a script it might be easy to miss the ...
0
votes
0
answers
69
views
Umount before running service in systemd
I have a systemd unit service script which initiates borgmatic to do the procedure of backing up.
I would like to umount potentially virtually mounted archives of borgmatic in order to avoid error.
I'...
0
votes
0
answers
47
views
sudo su gets hung in Ubuntu 20.04
When trying to run the sudo su command it gets hung. If I press Ctrl zz then after 2 minutes it goes to sudo. When I checked the permissions, it is OK and there is no output from it.
0
votes
1
answer
45
views
what owner:group should I set my lampp(apache and mysql) folder, so a non sudoer user can execute it without sudo command?
I installed the lampp suite via a sudoer user, but I need to be able to use it through another user that isn't in the sudoers file. Is it possible?
0
votes
1
answer
160
views
I am trying to install freeglut3 but when I try to do so, it give an error [duplicate]
I entered sudo apt-get install freeglut3
But it gives:
"Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package freeglut3
&...