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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

"sudo must be owned by uid 0" when installing a package [duplicate]

I installed npm and tried to install a package: npm install -g reaction-cli I got an error like: Error: EACCES: permission denied, access '/usr/lib/node_modules' So, I tried to add permission with:...
vanloc's user avatar
  • 193
3 votes
1 answer
4k views

sudo -i problem - sudo: /bin/bash/asd: command not found

Whenever I use the sudo -i command in the terminal, I get: $ sudo -i [sudo] password for user: sudo: /bin/bash/asd: command not found The /bin/bash/asd was just some mistyped directory I entered ...
user689123's user avatar
0 votes
0 answers
148 views

Apache2 Permissions

I am running Ubuntu Server 16.0.4 LTS and I have LAMP installed. I am currently at the directory /var/www/html and I am trying to use vi to edit index.html but it's a read-only file. I have tried ...
Enzo Gladiadis's user avatar
1 vote
1 answer
7k views

How to install python packages with virtualenv without installing them globally?

I have installed virtualenv with sudo apt-get install virtualenv. It stands in this tutorial that you need to use your env/bin/ folder's own pip or pip3 command to install modules in the virtual ...
imrek's user avatar
  • 194
0 votes
0 answers
8k views

sudo apt-get remove libssl1.0.0 libssl-dev by mistake [duplicate]

I ran this command sudo apt-get remove libssl1.0.0 libssl-dev by mistake and it started removing all the apps. It is still running as I am posting the question. How do I revert back. Please help. I ...
kittu's user avatar
  • 103
0 votes
1 answer
193 views

Error when using sudo apt-get update in line 54 of the list

I am using Ubuntu 16.04 LTS. Whenever I try to install updates using the terminal window, I get this error. Also when I go into the Software Center there is software shown. Please help.
Harshvardhan's user avatar
0 votes
0 answers
38 views

Unable to remove sudo access from ubuntu user [duplicate]

When i have install ubuntu at that time create admin user, Now my plan is to remove sudo access from this user and added custom sudofile for this user. First I remove sudo group from this user: $ ...
Nullpointer's user avatar
  • 1,161
0 votes
1 answer
1k views

How to prevent sssd package from modifying nsswitch.conf

We are running sssd on a number of Xenial servers to authenticate against Active Directory. Upon installation, the sssd package added sss to most lines in /etc/nsswitch.conf as documented in https://...
Tilman's user avatar
  • 3,499
1 vote
1 answer
814 views

TCAdmin needs super user permissions despite using sudo and being su

So I'm using Microsoft Azure's trial for my Ubuntu VM, I can't login into the 'root' user as I need to access it via username and private ssh key, however 'myusername' with sudo has allowed me to do ...
PaleHorse's user avatar
4 votes
1 answer
12k views

How to run IntelliJ IDEA as a dedicated system user?

the problem I installed IntelliJ IDEA on my system (to /opt/jetbrains), and want it to be able to modify its files (do self-updating) without enabling any other process to modify them. the ...
MrMeszaros's user avatar
0 votes
1 answer
734 views

could not enter to root directory

$ sudo su Cannot execute /bin/ksh: No such file or directory $ sudo chsh -s /bin/bash root Password: chsh: PAM: Authentication failure This also is not changing my directory; I could not enter ...
jile singh sorout's user avatar
10 votes
2 answers
114k views

How to open a file with "sudo"?

Answer on Question - I am facing error with my internet connection Above is the link to a fix to help with a loss of connection after power saving mode. It says "open with sudo..." How does one do ...
Justine's user avatar
  • 109
0 votes
0 answers
134 views

Ubuntu is looking for my credentials on local server and not locally during login etc

The login process is really slow and when I use sudo the same. From what I have seen, the system tries to find my credentials first on the server and then locally, on my machine. Any way to change the ...
Nick Pampoukidis's user avatar
1 vote
2 answers
2k views

I'm locked out of my main account, its suddenly become unreadable, and the super user password is no longer working

I'm locked out of my main account, its suddenly become unreadable, and the super user password is no longer working. I have a few other users on the machine, so I can get in there, but can't do ...
John Slotsky's user avatar
3 votes
1 answer
4k views

"Sudo without password" does not work

I want to enable a user to run sudo without password. I used visudo to append the line to config file idiot ALL=(ALL) NOPASSWD: ALL Yet sudo still asks password as usual. Why?
Barafu Albino's user avatar
1 vote
2 answers
1k views

How to prevent to change /etc directory by sudo user [closed]

We have an Ubuntu 14.04 machine in our lab and my plan is to restrict changing anything in the /etc directory by users with sudo privilege so that only the root user can edit the configuration files. ...
Nullpointer's user avatar
  • 1,161
0 votes
0 answers
876 views

sudo environment variables disappeared

Symptom: user1@ubuntu:~$ printenv PATH /system/company/root/bin:/usr/lib/icecc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/system/company/scripts:/opt/puppetlabs/bin ...
Thomas G. Lau's user avatar
8 votes
2 answers
66k views

Run sudo command with non-root user in Docker container

I have this Dockerfile: FROM ubuntu:17.04 # Must have packages RUN apt-get update && apt-get install -y nano zsh curl git # Instal Oh my Zsh RUN bash -c "$(curl -fsSL https://raw.github.com/...
Kevin's user avatar
  • 191
7 votes
2 answers
33k views

Unable to stat /etc/sudoers: no such file or directory

I was using Ubuntu 14.04 only recently. And somehow I changed permission to /etc/sudoers file. So every time I run any command using sudo I get these errors: sudo: unable to stat /etc/sudoers: No ...
Cassie's user avatar
  • 213
0 votes
1 answer
3k views

Why is there a symlink from /usr/local/bin/ to /usr/sbin?

What is the purpose of this symlink? sudo ln -s /usr/local/bin/snort /usr/sbin/snort It was a part of the installation process for snort. Now I do not know if it is because it is supposed to be ...
uppermost's user avatar
1 vote
1 answer
2k views

How to access my root folder with admin access?

I've installed apache server on Ubuntu 16.04. Now I want to access with admin access frequently. Till now I've used following command : gksu nautilus Since few days ago. It's not working at both of ...
tuxtu's user avatar
  • 3,175
1 vote
1 answer
6k views

sudo Virtualbox returns "Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile" error 17.04

So I just installed ubuntu 17.04 and launch Virtualbox as sudo for the first time and I get the following error: $ sudo virtualbox Qt WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/...
optumin's user avatar
  • 23
1 vote
0 answers
36 views

Bash - reload profile or bashrc when switching to root [duplicate]

Just moved over to ubuntu land from fedora (wanted try the budgie build). I'm fed land I had a script (from Fedy - posted below.) that changed my prompt to red when I logged into the root shell with ...
the_frank's user avatar
0 votes
1 answer
970 views

When I type sudo -i nautilus, nautilus opens and shows an error

After launching nautilus with sudo -i nautilus it opens and shows this message: Oops! unable to create the required folder. Please create the folder or set permission to create the folder: /root/....
Sathvik K S's user avatar
0 votes
0 answers
69 views

How can I get programs to run as root again using the sudo <app_name> command?

I think I some how managed to mess up my su settings and now, I've been unable to run programs as root. Take virtualbox for instance, I use the sudo virtualbox command to run virtual box as root. On ...
optumin's user avatar
  • 23
0 votes
1 answer
58 views

trying to set a static ip but can't

Every time I try to get into my /etc/network/interfaces file, I get a not a directory message. I have not done anything else to it since I have installed the server on to my VM, and I am logged in ...
Alex Watson's user avatar
0 votes
2 answers
2k views

Is it safe to execute sudo apt-get autoremove after every update [duplicate]

I always prefer keeping my disk optimized by using the above command. I wanted to know whether this is a safe practice. I am using Ubuntu 16.04
Pranal Narayan's user avatar
1 vote
1 answer
3k views

How to install through pip?

I am new at ubuntu and python too. While installing different packaged through pip in ubuntu terminal it gives permission denied errors.Ex : pip3 install numpy But when i run same command ...
user4828815's user avatar
0 votes
1 answer
2k views

MySQL without "sudo"

I need to invoke the sudo command every time I want to use MySQL through command-line in Ubuntu 16.04. If sudo is not invoked, I get the following error message: $ mysql -u anyuser -p Enter password: ...
R. Ilma's user avatar
2 votes
1 answer
27k views

Ubuntu - EFI variables are not supported on this system

I'm trying to run sudo mokutil --disable-validation and sudo mokutil --import MOK.der But, I get this message in Command line: EFI variables are not supported on this system lsblk output: NAME ...
Ali Hesari's user avatar
  • 1,092
0 votes
1 answer
378 views

Unable to remove Geanymotion from my pc...I'm doing it wrong?

Hi guys I'm tryng to remove geanymotion from my pc but it's always impossibile for some error or the terminal say to me that there is no such file or directory for geanymotion...can someone help me? ...
Giovanni Giampaolo's user avatar
1 vote
0 answers
23 views

A noob question about sudo -s [duplicate]

So when I do sudo -s in my terminal I get into root mode, and after I do whatever I wanted to do, I do 'exit'. Now If I do 'sudo -s' again, the terminal does not ask for any password and enters root ...
ultron's user avatar
  • 111
4 votes
2 answers
1k views

Create user ID `root` to force `gedit` to create user configuration file

When using sudo powers and calling gedit the top level menu with File Edit View Search Tools Documents Help is missing. If I create user ID root and sign in once and call gedit will it create the ...
WinEunuuchs2Unix's user avatar
0 votes
0 answers
1k views

Avoid password prompt while using minicom

I have the following python code where I am trying to open the device /dev/ttyUSB5 using minicom: import serial import os b1_ser_port_num=5 cmd="/dev/ttyUSB"+str(b1_ser_port_num) print "We are now ...
skrowten_hermit's user avatar
1 vote
1 answer
88 views

Thunderbird runs with an empty profile after I used sudo

I once ran thunderbird with the sudo command and now when I run it (with or without sudo) it does not load my default profile. The files of my default profile are still in the .thunderbird directory.
Reza's user avatar
  • 1,235
0 votes
1 answer
1k views

Unable to resolve host in Ubuntu using sudo

I am trying to use sudo to update, and get a strange reply for terminal: sergio@sem:~$ sudo apt update --fix-missing sudo: unable to resolve host sem I suspect this could be a hacking of the host, ...
user287546's user avatar
1 vote
0 answers
621 views

Sudo command does not respond in terminal on Ubuntu 16.04 [duplicate]

I am trying to run any command using sudo, but the cursor just blinks when pressing ENTER, and nothing happens. Then: sem@sem:~$ sudo apt update --fix-missing sudo: unable to resolve host sem Any ...
user287546's user avatar
15 votes
2 answers
43k views

"~/.wine is not owned by you", am I safe?

So I was running about trying to install something in wine when I encountered the suggestion to use sudo to get administrator privileges. That's when I got the above message ~/.wine is not owned by ...
Miko's user avatar
  • 179
0 votes
0 answers
1k views

Cannot log in after successful password change

I can change the password of my newly created user, but I cannot then log in. stephane@vps331749:~$ sudo passwd alaoutid Enter new UNIX password: Retype new UNIX password: passwd: password updated ...
Stephane's user avatar
  • 395
0 votes
0 answers
696 views

private/strongswanKey.pem: Permission denied

I am trying to create a certificate based tunnel but when I type this line: sudo ipsec pki --gen --type rsa --size 4096 --outform pem > private/strongswanKey.pem it returns me private/...
Pino 's user avatar
  • 101
0 votes
1 answer
581 views

How do I deny a particular user from getting root ( through su ) in a terminal by changing the /etc/pam.d/su ? Pam based controlling is required [duplicate]

There are two users in ubuntu (let's call them user1 and user2). Currently, user1 can get access root access using the below commands: user1@sai:~$ su Password: root@sai:/home/user1# However, I ...
manikanta's user avatar
  • 443
0 votes
1 answer
1k views

How can I run this command without the use of sudo?

I have been trying to find a way to display (AMD) GPU load in my conky, and while researching methods to display load, I found a command that - while requiring sudo - worked to print the GPU load to ...
CodeRead's user avatar
  • 101
1 vote
0 answers
83 views

Unable to use any Sudo Commands when restarting, stopping, and starting Samba

I recently made a samba server on an old laptop and that's all I wanted to do with it. About a day ago I was going to use vlc to look for the samba server (I was able to do so before) and couldn't ...
Jesse's user avatar
  • 11
16 votes
3 answers
6k views

pipe to sudo -E bash -

I was wondering what is the purpose of piping the downloaded file by curl into sudo -E bash - in the following shell: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
youssef's user avatar
  • 353
3 votes
1 answer
7k views

Sorry,the application sudo has stopped unexpectedly? [closed]

I powered on my Ubuntu 16.04 dual boot and got a system error. I selected to report it and this is what popped up. What do I do about this? And more importantly how am I even supposed to read this?
Callat's user avatar
  • 203
1 vote
0 answers
36 views

How does /etc/sudoers affect .ICEauthority?

I modified the /etc/sudoers file by adding this line: me ALL=NOPASSWD: ALL I can now run anything in /home/me as root without entering the password. When I reboot, however, I am not able to login as ...
ramji's user avatar
  • 11
2 votes
2 answers
2k views

How come I have superuser privileges without being in sudoers file

I've just installed Ubuntu and my user is a superuser which can execute commands with sudo. So I thought this user is added in /etc/sudoers file. But it seems it's not there: # # This file MUST be ...
Max Koretskyi's user avatar
0 votes
0 answers
70 views

Why sudo doesn't work when I change my password?

After changing my password through command passwd, I can't use sudo. When I use sudo -i for example, it stops and don't ask for my new password.
Felipe Ferraz's user avatar
6 votes
2 answers
7k views

Display a message while prompting for sudo password

I had once seen a Ubuntu user use a sudo command in a terminal. Before he was prompted for a password he was shown the following message: user1@linuxbox:~$ sudo apt-get update Please do not run this ...
John Smith's user avatar
4 votes
0 answers
741 views

installing python fails with permission denied (using sudo make install)

I tried to install Python 3.6 using this tutorial: https://www.programiz.com/python-programming#run-python-os on ubuntu 14.04. Running $ ./configure and $ make went fine. Running $ sudo make ...
very's user avatar
  • 41

1
23 24
25
26 27
58