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)

-1
votes
1answer
113 views

Please explain the complete steps involved in the installation of OpenSSH server on Ubuntu [duplicate]

I am having trouble installing openssh-server in Ubuntu. Particularly I want to know how to generate RSA public private key pair and the related concepts. What are the modifications to default config ...
0
votes
0answers
58 views

sudoers, NOPASSWD, and a /home/user/bin/script not working explanation (with workaround)

Ubuntu 14.04.3 The Problem I have a directory with some custom scripts, one in particular called aptupdate. The permissions of the directory are: drwxrwxr-x 2 htpc htpc 4096 May 4 00:35 /home/...
3
votes
1answer
56 views

“sudo pip” differs from normal “pip”

When I execute which pip3 it points to /usr/.../anaconda3/bin/pip3 However, when I run sudo which pip3 the result is /usr/bin/pip3 Where does this problem comes from and how do I ...
0
votes
0answers
15 views

Ubuntu 14.04 Unable to find expected entry 'main/binary-1386/Packages' [duplicate]

After searching and trying some of the solutions which are already there on Stack. I am still getting following errors after updating by command sudo apt-get update W: Failed to fetch http://in....
-2
votes
3answers
225 views

How to discontinue dd if the output file is /dev/sda? [closed]

It's not necessary to explain the surprise on running sudo dd if=/path of=/dev/sda sda or whatever the name of your HDD is. Is there a way in which I can stop that from happening? Answers can ...
0
votes
0answers
65 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: guest-te1w6r-Lenovo-G50-80:~$ sudo apt-get install git sudo: unable to change to root gid: Operation not permitted ...
-2
votes
1answer
31 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 ...
3
votes
1answer
61 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.
2
votes
2answers
343 views
0
votes
2answers
34 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 ...
1
vote
2answers
45 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 ...
3
votes
0answers
368 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
18 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 Terminal=...
0
votes
0answers
18 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
247 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
36 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 /etc/...
0
votes
0answers
42 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
36 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
22 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 ...
-2
votes
1answer
36 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
63 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
56 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
55 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
31 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
83 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 /etc/...
17
votes
1answer
926 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
2answers
151 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
995 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
26 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
157 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
124 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
26 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
49 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
44 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 ...
1
vote
1answer
44 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
50 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
21 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 didn'...
0
votes
0answers
32 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
26 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 (America/...
0
votes
2answers
233 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
55 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
24 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
26 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
61 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
19 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
123 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
80 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. ...