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
2answers
26 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 ...
1
vote
0answers
41 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
13 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
12 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
1answer
49 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>: ...
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
20 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 ...
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 ...
0
votes
0answers
27 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?
-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
vote
1answer
45 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?
0
votes
1answer
26 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
31 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
21 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. ...
1
vote
2answers
77 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 ...
15
votes
1answer
878 views

Get `sudo` emails for 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 mail_always ...
2
votes
2answers
95 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 ...
2
votes
1answer
983 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.
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 ...
0
votes
0answers
45 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
71 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
29 views

repair ~./profile file

I just messed up with ~/.profile, tried to add something to PATH, but looks like there was a syntax error in my code and now the login screen functionality won't work and I can use ctrl+shift+f1 tty ...
0
votes
1answer
30 views

How to login with root user? [duplicate]

I'm trying to do a login in my Ubuntu, but I can't: I read Q&A about enabling root user, but how I can do it without a sudoer user? How can I add a sudoer user without having root access? I ...
0
votes
0answers
11 views

Edit sudoers file

some time ago I posted this question about conky and solved that problem. I used U 12.04 LTS. Now I use U16.04 LTS and I'm tryng to set conky as the previous distro. If I edit the sudoers file with ...
1
vote
1answer
37 views

Permissions error when sudo-ing

I'm following a simple installation guide and I have a noob question. The software I'm installing is Movim (the guide: https://github.com/movim/movim/wiki/Install-Movim) The 'Downloading' part of the ...
0
votes
2answers
41 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 ...
0
votes
0answers
19 views

Troubleshoot personal internet failure, vol. 2

This a follow-up from here: Troubleshoot personal internet failure, where: sudo service NetworkManager restart was proposed. However, Internet failure again today. I did the restart, but this ...
0
votes
0answers
24 views

sudo and su both not working

When I am running the command sudo apt-get update and after entering the password I am getting xxx is not in the sudoers file. This incident will be reported.. I have searched for this found ...
0
votes
1answer
16 views

Correct password cannot be authenticated to run Synaptic Package Manager GUI [duplicate]

I cannot access my synaptic package manager(in GUI) due to authentication error. Even though I enter the correct user password, it always say that "Your authentication attempt was unsuccessful. Please ...
1
vote
0answers
15 views

How to run a sudo command without a password where the command can be altered? [duplicate]

I know this question gets asked a lot but my situation is a little different. I am using Qt and the user has the ability to change timezones. Therefore, the following commands need to be used ...
0
votes
2answers
135 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
1answer
41 views

How to reverse these settings?

I followed the first answer give by user "dginsd" from here Discs in DVD Drive not being read because I couldnt mount a game I had on a DVD disk and thought that ubuntu wasnt seeing my DVDrom drive ...
0
votes
0answers
18 views

how to fix the following error: User is not in the sudoers file [duplicate]

When I try to install skype from the terminal I get the following: sudo apt-get install skype [sudo] password for tana: User is not in the sudoers file. It will be informed of this incident. Also ...
0
votes
0answers
9 views

How to Upgrade Ubuntu 13.04 [duplicate]

Lately I've gotten very involved with Linux Ubuntu, but I think I have a barricade in my way. Every time I try to upgrade via Software Manager, it says to check my Internet connection because it ...
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
1answer
23 views

Getting to root [duplicate]

I've checked the question archive and can't find an exact answer to the following. I have just installed Ubuntu on a new PC. While I'm fairly proficient in lumbering about in MSs operating console, ...
0
votes
2answers
39 views

Visudo Command Not Working on Sudo User

I recently bought a vps and I have am fairly new to using ubuntu on it since I have always used shared hosting. I have created a sudoer user and it worked perfectly fine yesterday except when I ...
0
votes
1answer
18 views

Retrieving Files from Broken Ubuntu

I run Ubuntu 14.04. I recently ran the command sudo apt-get -f install, which, for some reason, ended up removing the boot files. So, I reinstalled Ubuntu on a different partition. However, I would ...
0
votes
0answers
97 views

`sudo hostname` checks hostname resolution - can I turn that off?

I am trying to get Vagrant working with Ubuntu 16.04 (xenial). Apparently there are recent changes to hostname when called with sudo and the output to stderr is interfering with the way Vagrant ...
3
votes
1answer
59 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
0
votes
0answers
18 views

Ubuntu sudo broken/other probelem, Ubuntu Server

So i have given accses to / for everyone, which at the time i did not know this basically breaks the system. Tried a few things nothing worked. So i reinstalled ubuntu, did the install normal for ...
0
votes
0answers
46 views

Failed to fetch error: Hash Sum mismatch

I can't update. I want to install GNU Radio also but system is not getting update. sudo apt-get install gnuradio also doesn't work.
0
votes
0answers
24 views

I'm a new user who's pretty lost

My problem is this: I'm trying to permanently disable my touchscreen because it is cracked and occasionally moves the pointer on it's own. I have tried the xinput solution but as many other forums ...
0
votes
0answers
19 views

Can't run any programs because of less permissions and how to give a user full sudo privileges ?(Ubuntu 14 Server)

So, I created a Ubuntu VPS with AWS. I am very new to Ubuntu so I need a GUI, therefore I installed TightVNC to use it from my Win 10 PC. Now here are the problems: 1) The server has a default user ...
3
votes
3answers
53 views

Can't Use SSH Keys Unless Running SSH With Sudo

For some reason I'm unable to SSH from my Ubuntu 15.10 machine to a remote server using a private key if I run ssh without sudo. Server side config is fine. I have tested the private key from my ...
12
votes
2answers
4k views

What is the name of the security concept that explains why Linux asks for root password?

Whenever I'm installing new software or making changes to the system, Linux asks for the root password. What is the name of this security concept and where can I research more information about it?
1
vote
1answer
66 views

Ubuntu terminal cant type special characters like backslash (\), slash(/), semicolon (:), etc properly

I'm running Ubuntu 14.04 without GUI and i'm having problems entering characters like backslash, slash, semicolon and so forth. The keys which would normally enter these characters print out all kinds ...
0
votes
0answers
27 views

what is the diffrence b/w “remove write-protected directory” & “descend into write-protected directory”?

am new to linux world, am practising basic commands, i tried to use rm command to remove directory/folder from current directory which was /, without providing super user permission or sudo. it says ...