Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

learn more… | top users | synonyms (1)

0
votes
0answers
19 views

Unable to install git on 14.04

I'm trying to install git on Ubuntu 14.04, but it's giving me this error: Lenovo-G50-80:~$ sudo apt-get install git sudo: unable to change to root gid: Operation not permitted sudo: unable to ...
2
votes
1answer
105 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
0
votes
0answers
22 views

Cannot start Sidekiq workers because of missing root permissions for deployer. How to fix that?

I want to run Sidekiq as an Upstart service, but when I try to run workers start workers I get this error message: start: Rejected send message, 1 matched rules; type="method_call", ...
31
votes
5answers
43k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
2
votes
2answers
268 views

Accidental changing of permissions to run sudo, leading to its inability to function

I ran sudo chmod 777 -R /usr/bin as I had a few programs there I wanted to be able to run with more ease, without continuously entering my root password but now /usr/bin/sudo keeps giving me an error ...
-2
votes
1answer
29 views

Creating long root passwords

Lets say I have root password somepass. Is there a way to create a script that changes my password to a string consisting of the original password concatenated with itself n times ? I.e., if n=3, the ...
1
vote
1answer
4k views

Adduser: group sudo does not exist

I am able to login to my account but can't do anything related to superuser now. Updates, sharing, sudo and all things say authentication failed. I tried to correct that by going in recovery mode and ...
3
votes
4answers
10k views

Authentication Failure while accessing super-user privilege

I get the root privilege when I type sudo. But when su asks for the Password, which I type in, the terminal says su: Authentication Failure
16
votes
1answer
885 views

Get email notification for using 'sudo' by a specific user

I have a server set-up and I let somebody that I trust with a little bit of sudo access have it. However, I also want an email anytime that they use sudo. I know that I can use Defaults ...
3
votes
1answer
50 views

Unable to update with 'apt-get': errors

Can't run sudo apt-get update , I get errors like: E: Type '--2016-05-25' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list E: The list of sources could not be read.
30
votes
3answers
107k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
0
votes
2answers
19 views

ls and cd give no output when used with sudo

In my root user directory, ls outputs this: Desktop Downloads Music Public Videos Documents examples.desktop Pictures Templates However, sudo -i ls does not give any output ...
0
votes
2answers
30 views

Update Error in Ubuntu

sudo apt-get update leads me to: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ...
2
votes
0answers
89 views

No menu bar in gedit 3.18.3 on Ubuntu 16.04

Gedit usually shows the menu bar when the mouse is hovered over the top of Unity (desktop) no matter where or how gedit is displayed. This is ok. When started from terminal using sudo gedit there ...
0
votes
1answer
16 views

Running desktop entry causes program to start then close without ever showing

I'm trying to make a desktop entry for Xampp on Ubuntu 16.04. Here's what I have so far.. [Desktop Entry] Type=Application Comment=Launch XAMPP Manager Keywords=XAMPP,php,apache Name=Xampp ...
0
votes
0answers
14 views

Ubiquity not create user

I create my own distro for school computer and everything is good but ubiquity installer not create user :/ I try to edit casper.conf file and lightdm but it doesn't help me ;/ Maybe my live user is ...
0
votes
2answers
149 views

Ubuntu 16.04 sudo w/ NIS too slow, bind(2) lotta ports and remains lotta connection between the NIS domain server

The title says all. anyway, I just upgraded my server from 14.04 LTS to 16.04 LTS and I realized the sudo runs too much slower than 14.04. I strace'd and got following result: $ sudo strace sudo ...
0
votes
2answers
2k views

allowing user to run systemctl/systemd services without password

I want the default user, ubuntu to be able to run a specific service without being prompted for a password. Specifically systemctl restart unicorn_my_app.service. Have followed the instructions here ...
1
vote
2answers
78 views

Error Using “sudo apt-get update”

I got the following error while using the sudo apt-get update command. :~$sudo apt-get update /etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1 <<< sudo: parse error in ...
1
vote
1answer
8k views

How do I get into recovery mode on ubuntu 14.04 if the option not showing

I just boot up my laptop then run the sudo apt-get update command, but there's an error says: [username] is not in the sudoers file. This incident will be reported. so I search the google ...
28
votes
4answers
88k views

My main username is not in the sudoers file

I was trying to install some software/edit files with my main username(not root) But I got this error [X] is not in the sudoers file. This incident will be reported. I tried to edit the /etc/sudoers ...
0
votes
1answer
69 views

upgrading Ubuntu from 14.04 to 16.04_ Update problem

After upgrading Ubuntu from 14.04 to 16.04 I got the following two problems. 1. When I do sudo apt-get update I got: W: <http://us.archive.ubuntu.com/ubuntu/dists/precise-security/InRelease>: ...
3
votes
3answers
16k views

Call a shell script from PHP, run as root

I'm running ubuntu 11.10. I want to be able to call a shell script from php and run that script as root. When my php attempts to call the shell script as root --like this: $output = shell_exec('sudo ...
0
votes
0answers
30 views

thinkfan - startup command doesn't start [duplicate]

I have a Thinkpad and I usually use thinkfan to control the fan on my laptop. But this program doesn't start at the startup automatically, so I created a startup program with this command: sudo ...
0
votes
0answers
21 views

Sudo and Su give Segmentation faults

I'm running Ubuntu 14.4 LTS. When I try to use the sudo command with any other command, I get a segmentation fault. sudo ls su ls The result I get is always: Segmentation fault (core dumped) I ...
0
votes
0answers
25 views

sudo access problem

sudo su sudo: unable to stat /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I am not able to access the sudo command in 14.04 ...
20
votes
8answers
45k views

How do I fix a “E: The method driver /usr/lib/apt/methods/http could not be found.” error?

I tried updating my packages from the terminal and this is what I got: $ sudo apt-get update E: The method driver /usr/lib/apt/methods/http could not be found. E: The method driver ...
0
votes
1answer
20 views

Protect root-owned script against tampering and run unattended w/ sudoers' NOPASSWD

Using /etc/sudoers I gave a non-root user (anyuser below) permission to sudo-execute a root-owned script (test-script below) with the NOPASSWD: tag set. The script's permission octal value is 0550. ...
0
votes
0answers
21 views

How to run commands that require root privileges without entering a password [duplicate]

I want to run some small scripts found in /usr/local/bin without entering a password, such as 1 #!/bin/bash sudo modprobe -r psmouse 2 #!/bin/bash sudo ...
1
vote
4answers
7k views

Debug Qt application on ubuntu with root permission using qt creator

It is possible to run my application with root priviliges using sudo, like this: sudo ./MyApp Is it possible to debug my Qt application using root priviliges using QtCreator? How can I do this on ...
23
votes
5answers
12k views

What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

I accidently ran sudo chmod 755 -R / instead of sudo chmod 755 -R ./ I stopped it after few seconds, but now there is some problems such as sudo: must be setuid root How can I revert ...
-2
votes
1answer
26 views

sudo prompt in terminal doesn't enter [duplicate]

I am trying to install Spotify on Ubuntu 16.04. I type the command into the terminal sudo apt-key adv... etc. and hit enter. It prompts me for the password and when I type on the keyboard nothing ...
-1
votes
0answers
30 views

My sign in password does not work for sudo password

I use bob to sign in to ubuntu 16.04. I use bob when asked for sudo password and I keep getting sorry try again message?
0
votes
2answers
46 views

Can we install a package through a shell script?

I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument. My question ...
1
vote
1answer
46 views

Woops. I did “chmod 777 /” [duplicate]

I was in a rush and accidently did "sudo chmod -R 777/". As you can imagine, everything is broken. I can't access sudo either. Is there a solution to this, or will I have to do a clean install?
245
votes
16answers
293k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
0
votes
1answer
29 views

Editing /etc/sudoers to allow Winbind Group members to Only sudo to 1 Local User

I have multiple Ubuntu Linux hosts that need to connect to Active Directory for user management (unfortunately an actual LDAP server was not an option here...) and have configured Winbind to handle ...
-1
votes
2answers
32 views

permission denied to var/lib/dpkg [duplicate]

Following error output on apt-get install -f: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you ...
0
votes
1answer
22 views

Strange behaviour using sudo with pipe

When I use sudo twice in two piped commands, I get the following output: $ sudo echo 'hello world' | sudo cat [sudo] password for zoey: [sudo] password for zoey: And must enter my password twice. ...
2
votes
2answers
97 views

Run “sudo arduino” with .desktop file

To the close voters: seemingly a dupe, but not quite, at least not of the suggested one: in the linked question, the commands can be added safely to the sudoers file. In case of an IDE, it is a bad ...
0
votes
1answer
25 views

Identifying an application using network

When I ran the following command sudo netstat -lantp | grep -i stab | awk -F/ '{print $2 $3}' | sort | uniq on the terminal to check which applications are using the network connection, I got the ...
1
vote
1answer
348 views

Different settings for Midnight Commander running as root and as regular user

Is it possible to have some settings for Midnight Commander when run as user $ mc and some different settings (e.g. skin) when run as root? $ sudo mc The motivation is that it is immediately ...
2
votes
1answer
985 views

How to avoid someone using the “sudo” command to get unauthorized root access to my computer?

After understanding, what 'sudo' command does, I want to protect my computer from someone who wants to use this command for illegal purposes.
1
vote
1answer
4k views

Permission problem with SFTP in FileZilla

Recently, we installed Ubuntu Server on our servers this is very new for us. However, we tried to setup a apache2 server which did work. But the problem is that we can't configure apache and other ...
0
votes
0answers
56 views

How to add permissions to use chmod 777 to an user from the sudoers file

I have been trying to modify the permissions of a Linux user on a cRIO. I installed sudo and modified the sudoers file with Vi and add this line: (I need at add permissions to access a file to a user ...
0
votes
1answer
76 views

How can I access recovery mode, Ubuntu 14.04 LTS? [duplicate]

I managed to delete my only user from sudoers group, and now I can't do any administrative tasks anymore. I have been looking for an answer hours, and I guess that part of the problem is solved. But ...
1
vote
1answer
22 views

“sudo matlab” logs in as demo version

I was using a demo version of MATLAB on Ubuntu 14.04 for the last month, before purchasing a license today. The licensing procedure required me to download a file, "license.lic" and then point the ...
0
votes
1answer
4k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
18
votes
8answers
52k views

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?