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
-1
votes
0
answers
34
views
I can't run terminal as root
When I run sudo su or any other command with sudo this is the output
sudo: /etc/sudo.conf is world writable sudo: /etc/sudo.conf is world writable sudo: /etc/sudoers is world writable sudo: no valid ...
0
votes
0
answers
54
views
Problem with sudo
sudo must be owned by uid 0 and have the setuid bit set
So I can't make any changes or install anything.
ubuntu 22.04
I am just start study it
appreciate your help
1
vote
0
answers
52
views
NETPLAN "DESTINATION HOST UNREACHABLE" Ubuntu 20.04.6 desktop
I'm quite new to Ubuntu and I'm trying to configure my netplan file.
when I set the configuration in my /etc/netplan/01.-network-manager.yaml there seems to be an issue after i have apply the setting (...
0
votes
1
answer
77
views
Using rsync with sudo
I want rsync with sudo.
1 I try solution from this topic:
huser@linux:~$ rsync -avz --stats --rsync-path="echo 4321 | sudo -Sv && sudo rsync" /home/huser/mylibs/ [email protected]:/...
0
votes
1
answer
85
views
Ubuntu network mounts intermittently stop working
As the title says, some of the mounts work all the time, and some I need to do a restart for them to work. They always show they're mounted on my GUI but they do not work. Like I said, a restart ...
1
vote
0
answers
71
views
After installing apache2 it gives 403 Forbidden error
I installed the apache2 server on Ubuntu and after success, when I tried to hit the URL to check whether it worked or not it threw 403 Forbidden error instead of showing Apache's default page.
I ...
-1
votes
0
answers
119
views
How do I prevent the pop-up: "Daemons using outdated libraries" "Which services should be restarted?"
I want to automatically restart them. This script does not work:
FILE_PATH="/etc/needrestart/needrestart.conf"
# Check if the file exists
if [ -f "$FILE_PATH" ]; then
# Use ...
-1
votes
0
answers
14
views
how to remove the source list of celestia [duplicate]
I can't open use my terminal properly after trying so many times of installing celestia. But in the end, I wasn't able to install it. It says
E: Type 'sudo' is not known on line 2 in source list /etc/...
0
votes
0
answers
38
views
kindly asking how i can solve this
Err:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
403 Forbidden [IP: 10.31.1.3 8090]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user ...
-1
votes
0
answers
32
views
How to install packages like libglu1-mesa in a server without sudo
I'm using GPU server provided by my school, and I don't have the root privilege. But running the code needs to install some packages like libglu1-mesa. They are not python packages so I cannot simply ...
0
votes
1
answer
53
views
Cant log from local (keyboard) only using ssh plus "sudo su" give error:
I was messing with limits.conf and 99-sysctl.conf, and I became unable to access my system locally (i.e. using a keyboard). I cannot log in as any user, not even as root. I can only access my system ...
0
votes
0
answers
32
views
A question about tinyproxy
I've got a question. when I tried to start tinyproxy's service, a error occured. I didn't know what should I do to fix it.
-1
votes
1
answer
69
views
Can't view bash history for SSH sessions
When logging in as a user via ssh, then sudo su - to become root I can't see the history of commands run.
I've tried cat /root/.bash_history running the "history" command, etc. I only see ...
0
votes
1
answer
172
views
Not able to delete a file even if using sudo command on ubuntu 22.04 LTS
I have a text file Summary_DataTypes.txt which was created by me earlier. It appears in lsand vs code. But does not show in the folder even if I do show hidden folder.
I want to delete this file but ...
4
votes
1
answer
373
views
sudo with tee displays staircase
Previously I ran without sudo and used tee to display on terminal and log to file:
./my_app | tee path/to/log_file
Now I need sudo:
sudo ./my_app | tee path/to/log_file
However, because of tee when ...
-1
votes
1
answer
63
views
Unable to execute sudo command from ssh agent; getting "Sorry, try again", but the same password works in the server
With the valid password, we are unable to execute sudo commands from the ssh agent. We are getting "Sorry, try again". The same password works in the server.
What could be the problem?
4
votes
1
answer
795
views
sudo: /etc/sudo.conf is group writable
I've made a mistake. List of commands that I typed:
sudo usermod -a -G root erp
sudo chmod g+w /etc
setfacl -R -m u:erp:rwx /etc
Then ssh.service of the virtual machine stopped working and when I ...
0
votes
1
answer
45
views
Encountering error command 'sudo' not found
I'm fairly new to ubuntu and have tried to fix this issue by updating it several times and following multiple guides yet it shows me the same thing? not sure what the problem is anymore
enter image ...
0
votes
0
answers
100
views
sudo fails to ask for password if libpam-tacplus is installed
With an updated Ubuntu 23.10 installation (as of 2024-01-25), running anything with sudo fails to ask for a password. It just hangs forever. Running strace, I noticed that it was blocking on a read() ...
-1
votes
1
answer
88
views
root ssh acccess is disabled and sudo user can not make root changes on vps Ubuntu server
I first created a sudo user from root ssh by using below commands on my Ubuntu 22 server:
adduser username
usermod -aG sudo username
Then, I disabled my Root login by going to nano /etc/ssh/...
1
vote
1
answer
115
views
I cannot get a key in gnupg - file not found
In order to get a software working I need to get a key.
I tried it as a user, then as root, no effect.
Checked with Synaptic if all software for gnupg is there, do not see anything missing.
I build up ...
0
votes
1
answer
56
views
Fix changing all files permissions to default user in ubuntu [duplicate]
I accidentally ran the command
sudo chown -R ubuntu:ubuntu .
while i was in the root directory.
Now every single files user and group has changed to the Ubuntu user and group. And none of the ...
0
votes
0
answers
79
views
Did by mistake sudo mv /usr/bin /usr/local/bin
By mistake I did sudo mv /usr/bin /usr/local/bin and forgot to put the filename. Now my terminal is not usable. Is there a way to recover from this? I'm from a company laptop and I cannot reformat.
...
0
votes
0
answers
54
views
visudo NOPASSWD:ALL doesn't work. I want to know why
I want to use sudo without command.
so I did visudo and changed the file like below.
(my username is user.jeong)
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/...
0
votes
0
answers
40
views
I need to run a program, as sudo, on boot, in screen... Tried a few things but can't get it all to work
My goals are:
I have "myprogram" that needs to be run in sudo
I want to run it as a service at boot
I want it to run inside screen so I can monitor it
So I can do 1&2 just fine, but ...
0
votes
2
answers
106
views
why "sudo copa" command not working, while "copa" commands works
I have installed homebrew with below instructions for ubuntu 22.04
https://owlhowto.com/how-to-install-homebrew-on-ubuntu-22-04/
Then I am able to install "copa" a Microsoft tool using ...
1
vote
0
answers
35
views
sudo asks for password [duplicate]
I have a few virtual machines from Amazon Lightsail and Linode all running Ubuntu 22.04.
With Amazon, by default, the root login is disabled, public-key authentication is enabled and default user is ...
1
vote
1
answer
114
views
How to restore /root/.bashrc as sudo su is giving segmentation fault (core dumped)
I've a dedicated remote web server. I messed up /root/.bashrc file by adding source /root/.bash_profile. It core dumps on sudo su.
$ sudo su
Segmentation fault (core dumped)
I can't login to server ...
0
votes
1
answer
85
views
I cannot Access sudo on my ubuntu VM
When I try to get my account to admin, Every way everyone used to open admin, did not work for me.
When i tried sudo -i or sudo su, it gave me this output,
usbuser123@Ubuntu2USB:~$ sudo -i
[sudo] ...
0
votes
0
answers
278
views
when I try to update "sudo apt-get update && sudo apt-get upgrade", an error related to rabbitmq comes out
Hit:1 ://security.ubuntu.com/ubuntu jammy-security InRelease
Get:2 ://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu jammy InRelease [5,185 B]
Hit:3 ://dl.winehq.org/wine-builds/ubuntu jammy ...
0
votes
1
answer
80
views
Cannot execute commands as root following upgrade
I accepted the invitation to upgrade my Lubuntu 20.04.6 LTS machine today, and have been unable to execute commands as root ever since - for example, if I try:
sudo docker stop home-assistant
I get:
...
1
vote
1
answer
206
views
Prevent sudo useres changing root user password
I'm a newbie here.
I have deployed a Linux server and I wanted to add other users to it. Then those users must able to install applications on the said server. To do that those users must have root ...
0
votes
0
answers
41
views
sudo doesn't working in Ubuntu 22.04 [duplicate]
I am going to update packages in Ubuntu 22.04 terminal.
sudo apt update
But I get errors like this.
[email protected]:~$ sudo apt update
[sudo] password for user:
tester is not in the sudoers ...
0
votes
1
answer
162
views
Ubuntu 22.04 "Bricked"
I'm running Ubuntu 22.04, and after compiling an NXP Driver for another piece of hardware am no longer able to run almost all commands. Anything containing "sudo" or "ls" returns ...
0
votes
0
answers
42
views
How to fix "credential reinitialization in a setuid context ignored"?
I'm using Ubuntu 22.04 with Kerberos authentication. Every time I use sudo, the following error is logged by the system:
pam_krb5(sudo:setcred): (user ****) credential reinitialization in a setuid ...
0
votes
0
answers
28
views
sudo apt update throwing error in ubuntu 22.04 [duplicate]
Err:9 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 127.0.0.1 3128]
Hit:10 http://mirror-osd-holding.de.bosch.com/ubuntu jammy-updates InRelease
Hit:11 http://mirror-osd-...
0
votes
0
answers
114
views
Active Directory Group Membership (refenced in the sudoers file) is Intermittent via SSH
ENVIRONMENT
We are operating several Ubuntu 22.04 systems. The systems are added to a Windows Active Directory Domain via the GUI as part of the initial configuration. We have an Active Directory ...
0
votes
0
answers
47
views
How do I change ownership of '/usr/libexec/sudo/sudoers.so' when it's stopping 'sudo' and 'su' from working properly?
any time I use sudo for any command I get the following errors:
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/libexec/sudo/sudoers.so must be owned ...
0
votes
1
answer
337
views
By a bash script executed in a local computer run a command (with sudo privileges) on a remote server
Run a command on a remote system from a local computer
I need to execute a command on a remote lubuntu 22.04 system by a ssh connection, but without open a shell. This instruction will be executed ...
1
vote
1
answer
322
views
Best Practice for setting passwords for Ubuntu user to restrict access to privileged root access
I am still new to ubuntu, i want to understand the best practice to restricting access to elevating access to root (i.e via sudo su). Would it be good enough to set a password for the ubuntu user (...
0
votes
1
answer
68
views
Destroyed sudo permissions, no access to grub due to nouveau kernal driver
I managed to get myself into quite the corner.
I messed up permissions to /usr/bin/ and all subdirectories, e.g. root is no longer owner of /usr/bin/sudo. As a result, I get the infamous /usr/bin/sudo ...
0
votes
0
answers
69
views
Update PATH Variable in Byobu for root
I would like to add a directory to the $PATH variable for all users, including users who run byobu with sudo byobu.
I am running Ubuntu 22.04 LTS on x86_64.
The desired path is below. Note the ...
0
votes
0
answers
58
views
Newly created ubuntu and i am not a part of sudoers file
I am using virtualbox to create use ubuntu. I have small experience in creating unix systems. However i just crashed my latest ubuntu so i created a new one. I am currently trying to configure the 22....
0
votes
0
answers
97
views
Warning message in command line
When I use 'sudo apt update && sudo apt upgrade' command, everything is normal. But at the end of the process lines of messages appear
Memtest86+ needs a 16-bit boot, that is not available on ...
1
vote
1
answer
922
views
I accidentally run command "chmod 555" on system directories [duplicate]
I accidently ran
sudo chmod 555 /
and now all users have lost access to the server
Error:
Last login: Thu Oct 18 16:50:55 2023
Could not chdir to home directory /home/User1: Permission denied
/bin/...
0
votes
0
answers
24
views
How to create a ptracable process in Ubuntu
After Ubuntu Maverik, restrictions were placed on ptrace syscall. Now a only the parent process or the sudo user can ptrace a process. We can change this behavior by editing /proc/sys/kernel/yama/...
0
votes
1
answer
144
views
Java System.getProperty with sudo gets root [closed]
This question is better asked here than in stack overflow since it is more related to Ubuntu than the actual programming language. Here are two different ways to get the path to a file. The first one ...
0
votes
1
answer
732
views
I am trying to install Ubuntu 23.04 on my M2 Mac using VMware
I am trying to install Ubuntu 23.04 on my M2 Mac using VMware, but I can't get past the sudo command screen when I type in sudo taskel install ubuntu-desktop it keeps demanding I type in a command. I'...
1
vote
1
answer
790
views
Unable to modify files in root even after booting it up as admin
I'm trying to copy+paste a plugin for OBS under /snap/obs-studio/1284/usr/lib. It's located in root. The paste option is grayed out doing:
sudo su
nautilus
leads to me opening it as admin:///snap/obs-...
0
votes
1
answer
122
views
Execute Sudo and ssh sequentially through shell script
I am trying to execute below three commands through interactive mode sequentially and it works fine. But when I use the same command through shell script, control struck after sudo, the second command ...