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
0
votes
1answer
41 views

How to remove password requirement from `dash` executable and add it to the dock

I have 7 files for fan control which have following lines inside: #!/bin/dash echo level k | sudo tee /proc/acpi/ibm/fan where k after echo level is from 1 to 7 The script runs fine, however it ...
0
votes
0answers
24 views

Please Help:gedit via Terminal (sudo gedit): Unable to remove “highlight current line” and Unable to modify preferences?

I sued gedit with sudo. I would like to unchecked: (the Highlight the current line, Highlight matching brackets, and Display line numbers) of gedit during the sudo gedit. But I can't do that. Hence ...
0
votes
0answers
16 views

Using 'sudo' with `virtualenv`

I am working on a virtual environment: sk, which I made this way: $ mkvirtualenv sk -p python3 I use workon sk to activate this environment and work in it. When I try to run some functionality of ...
-5
votes
1answer
49 views

add user to visudo to run any command without sudo but still get permission denied

i run like this: prod:~$ sudo visudo and then i added myusername here # User privilege specification root ALL=(ALL:ALL) ALL foobar ALL=(ALL:ALL) NOPASSWD:ALL i tried this also: sudo sh -c '...
-1
votes
0answers
18 views

How to lock a file for administrator (su/sudo password-protected) access only from command line / terminal?

I have some sensitive files that I want to protect from my own impulsivity. They're in ~ (/home) not /dev or /bin; those files are protected by default. However, like system files in /dev, /bin, or ...
1
vote
2answers
39 views

ubuntu 20.04 service autostart

I have a process which I start using sudo ./whatever I want to make it a service which starts automatically. Have created a .service file and put it in the /etc/systemd/system but it won't start ...
-1
votes
0answers
25 views

Not able to uninstall TLauncher from /opt [closed]

My brother has installed a TLauncher for Linux application in Ubuntu so that he could play Minecraft. Now I want to uninstall it, but I am not able to do so because it has been installed in the /opt ...
0
votes
1answer
58 views

hey i am noob can you help me getting these error and also as i was not able to mention more than 8 links so i remove https: from some [duplicate]

Ign:7 //ppa.launchpad.net/deadsnakes/ppa/ubuntu eoan InRelease Hit:8 //in.archive.ubuntu.com/ubuntu eoan-backports InRelease Ign:9 //ppa.launchpad.net/leaeasy/dde/ubuntu eoan ...
0
votes
0answers
14 views

Sudo error, resolve error [duplicate]

Every time I type, sudo <command> I get sudo: unable to resolve host sturtz: Name or service not known, Sudo works, I am just asking how to fix this. I am using Ubuntu Server 20.04 LTS.
0
votes
1answer
42 views

pycurl gives error while installing wfuzz on ubuntu 19.10

sudo pip3 install wfuzz Collecting wfuzz Using cached https://files.pythonhosted.org/packages/3f/1b/f9f59bf4ced03924f29b5830af4644bd59ba2f1d728d6fba154161d3e753/wfuzz-2.4.6-py3-none-any.whl ...
0
votes
1answer
30 views

Why does pip give an error while installing a tool?

Traceback (most recent call last): File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 234, in configure_unix stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.7/...
0
votes
1answer
47 views

Using sudo gives me the error: Sorry, try again

This is what happens when I try : sudo gedit [sudo] password for casper: Sorry, try again. My username is casper. I seem to be in the sudo group : id | grep sudo uid=1000(casper) gid=1000(casper)...
-1
votes
0answers
15 views

Why are there package errors saying 'it can't find an archive for it' Ubuntu 19.10 [duplicate]

I have had a problem with ubuntu 19.10. I try to install packages on the terminal but it always comes up with the same error: E: The package needs to be reinstalled, but I can't find an archive for ...
0
votes
0answers
13 views

Expand partition in encrypted partition with sudo command line

Can i know how to expand sda3 partitions sda3 LVM encrypted
0
votes
0answers
21 views

Linux Noob here E: Unable to locate package mhddfs and Sudo apt-get update error [duplicate]

Hi I cannot find this file called Mhddfs in my Ubuntu Linux server PS: There is no Gui in this server so i didn't cannot download the files of this Gui also will lose alot of performance so i don't ...
0
votes
1answer
46 views

Are two instances of pip & youtube-dl installed after using sudo to update?

I always used pip3 install --upgrade pip && pip3 install --upgrade youtube-dl to update pip and the relevant program youtube-dl. However, I started getting the warning:Defaulting to user ...
0
votes
2answers
22 views

If I add a user to sudoers to be able to perform root functions

If I add a user to sudoers to be able to perform root functions, does it mean this user is the same as root?
0
votes
1answer
49 views

X11 connection rejected because of wrong authentication when using sudo

I have a headless server and a desktop client, both running XUbuntu 20.04. I log in to the server using 'ssh -X servername' Graphical applications work fine from the server as a normal user, and ...
0
votes
1answer
33 views

After SUDO APT install, how to modify the installed files with root:root permission

In our org, we allow only "sudo apt-get" for a normal user. Now the problem is with those files created after this installation are with root:root permission, where this user cannot modify. ...
1
vote
1answer
49 views

Can't change the owner back to the root (can't use sudo command) in WSL Ubuntu

I faced this issue when I want to use sudo command : sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin then ...
0
votes
0answers
12 views

What if l run “sudo apt uninstall sudo”? [duplicate]

I did not run this command in terminal,but what will happen if i did?i'm just curious.And if something bad happens,how can we solve this?
0
votes
1answer
45 views

Disable sudo password and ask yes or no like in Windows

Every time I install new software in Ubuntu Software Center, it asks me for my password. I don't want to disable the authentication because it won't ask me for the password if I click on something ...
0
votes
0answers
10 views

ubuntu matte text editors never have sudo permission?

hello i just installed ubuntu matte and am trying to get a good code editor working like VScode and brackets working. vscode keeps asking for the need to save as sudo. i can allow it once by putting ...
0
votes
0answers
25 views

I get localhost dns resolution error when using command sudo after disabling local dns resolver in Ubuntu 20.04

When I to use the 'sudo' command, I get this error: sudo: unable to resolve host "hostname": Temporary failure in name resolution Happened after I disabled the local dns server on Ubuntu 20.04
1
vote
1answer
73 views

Messed up the sudo access!

Not sure if this is the place for troubleshooting, but I am gonna give it a shot. I was trying to make my computer turn off without needing sudo, and I must have done something wrong because I get a ...
1
vote
2answers
42 views

Trying to modify /proc/sys/vm/overcommit_memory, but getting permission denied even with sudo

I am trying to edit the file /proc/sys/vm/overcommit_memory, but I'm getting permission denied even if I use sudo or switch to root user via sudo -i and try to edit using that account. How can I get ...
-3
votes
0answers
52 views

Ubuntu doesn't recognize my user user/sudo password anymore, and I can't use sudo

I was trying to use sudo to run the command sudo apt-get install libsdl2-dev when I realized that Ubuntu didn't recognize my password anymore. There is no way that I could have been typing it wrong, ...
-2
votes
1answer
211 views

Three problems with Ubuntu 20.04 under Windows WSL

When using 'gcc' -Os option not accepted sleep command produces sleep: cannot read realtime clock Can no longer perform: sudo cat XXX >> YYY Results in Permission denied where XXX and YYY ...
0
votes
0answers
62 views

E: Unable to locate package update [duplicate]

When I run sudo apt-get install update && sudo apt-get install upgrade, I am getting these errors: E: Unable to locate package update E: Unable to locate package upgrade When I try to run ...
2
votes
0answers
25 views

In 20.04 “sudo -s” no longer utilizes user's “.config/*” files? [duplicate]

I have an htop config in /etc/skel/.config/htop/htoprc copied to all new user home directories. When I run htop as a regular user I see the expected settings. However under 18.04 if I ran sudo -s ...
0
votes
0answers
22 views

Ubuntu 20.04 beta shows error on sudo apt update [duplicate]

I am currently using Ubuntu 20.04 beta and I get this error on sudo apt update E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file. N: ...
0
votes
0answers
23 views

Broken sudoers file [duplicate]

I accidentally broke my sudoers file. I added one line in order to enable all permissions to an app, so I don't need to use sudo every time if I run that app. Now, I can't use sudo and I get this ...
0
votes
1answer
36 views

how to build a “sudo” starter/shortcut on desktop

on this siite >How do I edit the /etc/hosts file? i would ask my question but i dont have permission. strange, because now i have to open a new question, why ? thats was not the question. i try to ...
0
votes
1answer
32 views

Is it possible to un-sudo apps that have been run with sudo? [closed]

I heard that its not ok to run stuff always with sudo, because its same like running stuff as administrator on other os. Is it possible to revert it and un-sudo it so it dont have root access?
1
vote
1answer
55 views

sudo hangs after upgrade from 18.04 to 20.04

I am experiencing a weird issue after upgrading from 18.04 to 20.04 over the weekend. Almost every time I execute a sudo command on the terminal it takes upwards of 2 minutes to complete, sometimes as ...
0
votes
0answers
27 views

Run debug with sudo permission using qt creator

I want to debug my app at terminal with sudo permission. I tried to change the terminal settings to /usr/bin/xterm -e sudo and /usr/bin/gnome-terminal -x sudo, but it is just open empty terminal and ...
0
votes
0answers
57 views

How to fix this error? Err:5 http://www.getdeb.net/ubuntu wily-getdeb InRelease 403 Forbidden [IP: 143.95.32.90 80]

Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease ...
0
votes
0answers
25 views

How to take the /usr/bin permissions to the root?

I did some fault command: sudo chown -R $USER:$USER /usr/bin/ After that whenever I try to run sudo command I got this following message: sudo: /usr/bin/sudo must be owned by uid 0 and have the ...
1
vote
1answer
27 views

opt premission error

am using Ubuntu Server 20.04 and I'm having permission issue while running a script. Steps taken: cd /opt/ sudo git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git A sudo ln -s /opt/A/...
1
vote
1answer
47 views

User in sudo group, but still being asked for password [duplicate]

I'm running Ubuntu 20.04 LTS on my home server. I have just one user which I want to be able to use sudo, but I can't get it to work. I already ran sudo usermod -aG sudo rlommers. the output of id ...
0
votes
0answers
29 views

Why No software install in Ubuntu 19.04? [duplicate]

Basically I done update my ubuntu from 18.04 to in 19.04 last month.Now problem is when I install any software getting me error. for example when I try to update sudo apt-get update sudo apt-get ...
2
votes
1answer
145 views

Skipping acquire of configured file in ubuntu 20.04 LTS

I have recently updated to Ubuntu 20.04 and I am a bit fresh user for ubuntu. after installing postgresql 12 I ran sudo apt-get update it says N: Skipping acquire of configured file 'main/binary-i386/...
0
votes
1answer
41 views

Increase sudo timeout from within a bash script

I have a bash script that installs a lot of software. The whole process takes around 1h therefore I would like to increase the sudo timeout variable. I see it is possible as described here: Increase ...
0
votes
0answers
62 views

add an entry to the sudoers file [duplicate]

I have a user called 'jose' in a remote server and this user has full sudo access, but we were not provided with the root password of this remote server since the 'jose' user has the full sudo access. ...
1
vote
1answer
51 views

My user was deleted from sudo group

I think I made a big mistake. I did usermod -aG docker $USER to run docker without sudo. After run above command, my account status like below joont@joont-ununtu:~$ id uid=1000(joont) gid=1000(...
0
votes
0answers
18 views

is there a way to know original user after sudo [duplicate]

for example more the one user has access to sudo command after I run sudo ./somthing.bash, can bash know the original user that called sudo?
1
vote
0answers
37 views

Why id, id $USER is different?

I added my account to docker group. joont@joont-ubuntu:~$ sudo gpasswd -a joont docker and I typed id to check my account was added. joont@joont-ununtu:~$ id uid=1000(joont) gid=1000(joont) ...
-5
votes
2answers
95 views

Skype crashes when I run it as root user

In Ubuntu 18.04 on a Lenovo Thinkstation P330, Skype just crashes some seconds after start and writes a crash log that starts with: ProblemType: Crash Architecture: amd64 Date: Mon Apr 20 23:40:53 ...
0
votes
0answers
45 views

apt update error after installing python3.8 in ubuntu

I am getting the following error when I run sudo apt update Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http://...
1
vote
3answers
90 views

How do I change back /etc folder owner to root:root?

Yesterday I accidentally changed the owner of /etc folder group using this command: sudo chown -R pts:apache /etc I did this to upload a file from my end. Later when I tried to change it back to ...

1
2 3 4 5
49