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
0answers
25 views

How to create user without a password in Ubuntu

I am using Ubuntu 19.10.I want add a system user with a home directory, and the user won't have any login access or password. I want to accomplish this by running useradd without sudo command. I gave ...
2
votes
0answers
76 views

How to completely suppress output of a command?

I want this command to work silently, echo "any_password" | sudo -S true I tried redirecting the output of stdout and stderr to /dev/null. When I provide the correct password it works as ...
1
vote
1answer
25 views

Sudo Broken - critical error PAM

I just got a Yubikey and tried to set it up to use it to login to my computer. I followed the instructions by hackerb9 in this post. Passwordless login with Yubikey 5 NFC It worked perfectly, but I ...
6
votes
2answers
981 views

Accidentally copied files to wrong directory

Years ago I copied all the files from /usr/local/bin into /bin. Now my /bin directory is littered with unneeded files. How do I remove them using the find command without having to install third party ...
0
votes
0answers
14 views

How do I give CODE::BLOCKS sudo permissions permanently?

I would like to build and run apps from the code-block interface, without going to terminal do this that. I do use terminal but I like to use the code::blocks to do this work.
1
vote
0answers
21 views

Accessing wpa_supplicant using wpa_cli without sudo

I am using wpa_supplicant service to connect with wifi networks in ubuntu 18.04. Its configuration file is as below. ctrl_interface_group=sudo ap_scan=1 fast_reauth=1 update_config=1 p2p_disabled=1 ...
0
votes
0answers
41 views

Error using sudo in sources.list [duplicate]

When I want to use sudo in Terminal I get this error: E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/mono-official-stable.list E: The list of sources could not be read. E:...
-1
votes
0answers
38 views

Only root user have folder access. users on sudoers list get permission denied [duplicate]

Using ssh as root is no problem I have full access to all folders. But when I use a new user that is added to the sudoer list I get permission denied. What did I do wrong? komodo@havouza:~$ sudo -l -U ...
-3
votes
0answers
31 views

Sudo user has no access to specific folder [closed]

I have created a new sudo user. But it has no access to a specific folder used by a website. What can I have done wrong? Ubuntu 18.04 on a vps in datacenter Regards Anders Yuran
3
votes
2answers
191 views

Why pkexec does not launch Qt-based application as root user?

Previously it was told that it is bad idea to use sudo to launch GUI-based applications. So one should use pkexec instead. I remembered it, so I tried this to launch Kubuntu Driver Manager on Kubuntu ...
-1
votes
0answers
36 views

Sudo apt update error [duplicate]

This is the error message I get when I try updating and it is necessary for the application Zoom cloud meeting. $ sudo apt update [sudo] password for farukh: Hit:1 http://security.ubuntu.com/ubuntu ...
0
votes
0answers
31 views

cd /media/[user]/[external hdd]: Permission denied

I don't have permission to cd into my own external hard drive. sudo cd is not a syntactically legal command (tried it). What is going on?
2
votes
1answer
47 views

What to do after entering sudo password as plain text into terminal?

A few days ago i entered my sudo password (and hence my root password) into the terminal as plain text by mistake. I wanted to change my password, but forgot to enter the passwd command, and only ...
2
votes
0answers
23 views

Why not to use “sudo pip install”? [duplicate]

I heard from some of experienced devs that you should not use sudo with pip install. What is wrong with that?
4
votes
0answers
50 views

User can sudo from terminal but not when logged into gnome [duplicate]

I just finished re-installing Ubuntu 18.04 on my Dell Lattitude E-6420 and logged in to re-install the apps I need. When trying to run sudo apt install <app>, I see the following error: bash: /...
1
vote
1answer
56 views

Command 'sudo' not found [duplicate]

I tried to install sudo with apt install sudo but it won't work. I got these errors: E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the ...
0
votes
0answers
32 views

Why can't I edit files using nano

I'm trying to update the file /etc/fstab/ so I can automatically mount my drive on startup. I used the sudo mount -a command to check for any errors and I realised I have a typo in the file. I raced ...
0
votes
1answer
52 views

How to remove a pip package installed with sudo -h

My question is quite simple: I've installed virtualenv with the following command: sudo -H pip3 install virtualenv It seems to be wrong, because in the tutorial that I watch pip downloads other ...
0
votes
0answers
9 views

disco Release' no longer has a Release file [duplicate]

I used command sudo apt update to update my packages on linux os. but it shows some error saying below errors. Err:13 http://archive.ubuntu.com/ubuntu disco Release 404 Not Found [IP: 91.189.91.38 ...
0
votes
1answer
69 views

I tried this command now I cannot find my file after running sudo mv K8s.odt /Desktop [duplicate]

I used this command from home to move the file to my desktop and now I cannot find it sudo mv K8s.odt /Desktop
1
vote
0answers
17 views

WSL2 in Windows 10: sudo: /etc/sudoers is owned by uid 1000, should be 0 [duplicate]

I don't exactly know what I did wrong, but now every command that needs sudo returns: sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers sources found, quitting sudo: unable ...
0
votes
1answer
25 views

>>> /etc/sudoers.d/python: syntax error near line 1 <<< & based of my mistake in editing python file

I want to run pycharm as root by this instruction and this, but i have made mistake and don't added : in this script: user host = (root) NOPASSWD: full_path_to_python in /etc/sudoers.d/python file. So ...
2
votes
0answers
20 views

Configure pkexec to only prompt for password once

When using sudo there is a timeout where you don't have to type the password again for x minutes when you run sudo again. Is it possible to get the same thing for graphical applications which use ...
0
votes
0answers
16 views

Can't init SDL unless running as root?

I finally replaced my nine-year-old Linux computer and am trying to get the new one set up. I installed both Tile World, which I compiled from source, and Dosbox which I installed through apt-get. ...
1
vote
1answer
37 views

Launching an executable with sudo on startup - command not found

So there's a program I am developing and in order to use its full intended functionality, I need it to run with root privileges - otherwise it can't access /dev/spidev0.0. I have to get it to run on ...
0
votes
1answer
29 views

Docker Portainer /templates.json: permission denied - Ubuntu 18.04

I'm trying to start a container for Portainer but it's not starting and in the log it shows the message: 2020/06/16 16:31:12 Warning: the --template-file flag is deprecated and will likely be removed ...
1
vote
1answer
25 views

Group memberships not visible without running su - $USER after new login

I use ubuntu 18.04. I created a new group: sudo groupadd group_1 Next I added myself to the group: sudo usermod -aG group_1 $USER After logging out and logging in it appears as if I am not a member of ...
1
vote
0answers
40 views

Autocompletion doesn't work without sudo

When I try to Tab the way like /etc/freeradius/3.0/sites-available Tab doesn't show me variants of files that are inside the directory and also doesn't allow me to autocomplete this way. How can I ...
1
vote
0answers
28 views

Escape timeout for, or cancel sudo fingerprint authentication and revert to password

In systems where the fingerprint scanner works, you can enable sudo authentication in the terminal, so that you can swipe your finger instead of typing your password when you issue "sudo" in ...
0
votes
1answer
35 views

User not appearing but exists, cannot give it sudo privileges

My user has been edited somehow so it does not appear on login or in my settings. However, I can still login if I use not listed and type it in, and if I try and add a user with the same name this is ...
0
votes
0answers
50 views

Accidentally ran the command mv lib/* /usr/lib/* and now many commands like “sudo” and “java” don't work anymore

mv lib/* /usr/lib/* I ran this to move all my files in lib into /usr/lib directory it did move them but up with the above mentioned errors. I was in /home/appu/ directory when I ran the command. ...
0
votes
1answer
69 views

Internal drive turns read only

I am using ubuntu 16.04 and have an internal 8tb harddrive which I want it to be mounted to all users on my machine both admins and not. I've created a folder called 8tb in /media/8tb Then I added the ...
0
votes
1answer
117 views

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5200 (apt) [duplicate]

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5200 (apt) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg ...
0
votes
0answers
24 views

How to change back ownership? [duplicate]

I change owner of some root files and folders like /etc/sudoers to www-data by mistake! And now I can't use "sudo" at all! How can I change them back to my user? It a ubuntu 18.04 server and I can ...
1
vote
1answer
141 views

terminator: permission denied for sudo

I updated to Ubuntu 20.04. When I use the default terminal, everything is fine. But if try to use terminator, I cannot use sudo. I get permission denied. Again, only when using terminator. How can I ...
0
votes
0answers
50 views

sudoers can not edit network settings

I have two users which I have defined as sudoers in /etc/sudoers which looks like this: Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/...
0
votes
0answers
20 views

Giving a group access to execute the adduser command without sudo [duplicate]

Is it possible to allow a group to have unrestricted access to the adduser command Would you modify the sudoers file to include; %addusergroup ALL : (ALL) adduser I don't want to give ...
0
votes
0answers
11 views

E: Type 'sduo' is not known on line 2 in source list /etc/apt/sources.list.d/wine-obs.list E: The list of sources could not be read [duplicate]

'sduo' is not known in the list facing this error when sudo apt update. The list of sources could not be read
2
votes
0answers
27 views

Sudo stopped working after a failed dependency update

Sudo stopped working after I have tried to update a dependency from libc6XXXX to libc6YYYY, required by an experimental text editor. On the first try, it didn't work and apt-get suggested me to use ...
0
votes
1answer
288 views

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

I'm currently getting this error in browser. I wan't to execute a script through php, but somehow I'm getting this by printing with echo shell_exec (...) 2>&1: sudo: a terminal is required to ...
0
votes
1answer
98 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
1answer
42 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 ...
-1
votes
1answer
33 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
192 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 ...
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
67 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
46 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
56 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)...
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 ...

1
2 3 4 5
49