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
1answer
11 views

Start GUI-Application in Docker Container with sudo

System: Ubuntu 16.04 Display-Manager: lightdm I'm trying to create a docker container FROM ubuntu:latest where a GUI-Application is running in. The application needs to get executed with sudo to ...
0
votes
3answers
60 views

Unable to find password on sudo apt-get

I want to install some apps. I did: $ sudo apt-get [sudo] password for .....: But I cannot install my apps!
1
vote
1answer
19 views

Is having init 6 function without sudo normal or an oversight?

Since I've been manually updating Ubuntu MATE 16.04 using apt update, upgrade I also manually reboot using this command sudo init 6 Once I forgot sudo and it worked; further testing proved that ...
4
votes
1answer
248 views

Everytime I use a sudo command it says >>>/etc/sudoers.d/90-cloudimg-ubuntu: syntax error near line 1<<<

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/...
2
votes
1answer
35 views

Can I execute a program with a sudo command through a shortcut? [duplicate]

I've created a file containing these two lines of code: #!/bin/sh sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" I have ticked (from 'properties') the appropriate box to run the file as a ...
-1
votes
0answers
17 views

Error with Packages [duplicate]

I had this big red circle with a white minus sign on my notification bar something like this. An error occurred please run Package Manager from the right-click menu or apt-get in a terminal to ...
0
votes
1answer
25 views

Unable to resolve host <name>

After I enter sudo command in command-line it shows this error : unable to resolve host linux98 linux98 is my PC name. i have tried these solution too : Error message when I run sudo: unable to ...
1
vote
1answer
45 views

Pass sudo command from GUI [duplicate]

I have a shell script using some sudo command. When I run this script from terminal - it asks me for password and runs with any problem. But when I try to run executable shell script form GUI (double ...
0
votes
0answers
15 views

Sudo /bin/bash -c 'some command' does not load /etc/environment content, not set the env [duplicate]

I've got a bit confused When I do log in via sudo su - I get full environment loaded $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com ...
0
votes
0answers
23 views

What privileges should I give to a user who can access my SFTP but only reads them

I have a current root user which is able to do, well ROOT privileges on my SFTP running on Ubuntu LTS 12.04. I'm planning on adding a new user that can only read a specific directory inside my sftp. ...
8
votes
1answer
79 views

How to make /sbin/shutdown, /sbin/reboot etc. require sudo again in 16.04?

For whatever reason, we do no longer need to be root (or using sudo) to run /sbin/shutdown, /sbin/reboot etc. This seems to be because those executables are now symlinks to /bin/systemctl which ...
0
votes
0answers
21 views

sudo command terminal takes a lot of time to ask for password?

In Ubuntu Gnome 16.04 in the terminal it takes a lot of time to ask for the sudo password, for example when I use: sudo apt-get update or anything else.
0
votes
1answer
58 views

Missuse of chmod -R 777 ./ [duplicate]

I ran something like: sudo chmod -R 777 /. In my Ubuntu 16.04 LTS it shows many errors on display, but anyway, the damage was done. Now I can't use sudo sudo: error en /etc/sudo.conf, línea 0 ...
0
votes
1answer
48 views

What is the difference between the group root and the group sudo? Why root user by default is not a member of the group sudo?

I am quite confused regarding this matter. As far as I know the user root has all the privelages. Also all the users of the group sudo has all privelages. But the user root by default is not a ...
0
votes
1answer
35 views

help understanding sudo -s [duplicate]

I was trying out a command yesterday that put my computer into hibernation mode. The first line in the command sequence was sudo -s which made my command line go from userName@computerName:~$ to ...
0
votes
1answer
16 views

Ubuntu server in azure cloud: no valid sudoers sources found, quitting while restart apache

I am creating a ubunu virtual machine in my azure cloud service and installed the lampp stack and phpmyadmin. Instllation is completed without any problem and for accessing the phpmyadmin i have ...
0
votes
0answers
35 views

Systemd, start user level unit with sudo access

I have a Debian package which installs my software and it needs to start two applications in post install script. First one is daemon and the second one is a background process both are managed with ...
0
votes
1answer
49 views

sudo problem. I can't write my password to terminal

so I was installing python on my laptop :~/Desktop/Python-3.5.1$ su root Password: ssu: Authentication failure` It didn't let me wrote my password. so I looked help and found that: gksu ...
1
vote
2answers
119 views

sudo: unable to resolve host 127.0.0.1kaushal

Yes, Might be duplicate of following links Tried both links solutions but didn't worked for me. Error message when I run sudo: unable to resolve host (none) sudo: unable to resolve host ubuntu-...
1
vote
2answers
105 views

Sudo is not asking for password on Ubuntu 16.04

Ever since I update to 16.04 I notice whenever I use any sudo command the terminal does not ask me the password before executing the command,The command is directly executed.I am the admin and I have ...
0
votes
1answer
25 views

E:Type 'sudo' is not known on line 53 in source list [duplicate]

I have done some looking around for a solution. However, I have come to the conclusion that the solution to my problem is just not on the internet. I am unable to update Ubuntu and download apps from ...
1
vote
1answer
30 views

16.04: editing /etc/sudoers to allow NetMan restart w/o password

I want to be able to restart Network Manager without having to enter my password every time. I did sudo visudo and added this line: %sudo ALL=(ALL) NOPASSWD: /bin/systemctl restart network-manager....
0
votes
2answers
134 views

sudo not working at all

this is the error message i get: ubuntu@tegra-ubuntu:/$ sudo apt-get update sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid sudoers sources found, quitting sudo: unable to ...
0
votes
2answers
26 views

sudo -s takes a long time to execute and prompts sudo: was not possible to resolve machine XXX

I do not know what is wrong but now, whenever i use a sudo command it takes a long time to execute and prompts: sudo: was not possible to resolve machine XXX then it executes. It seems that is ...
15
votes
2answers
595 views

What's the difference between login as user and changing users using su through root?

When you have a server of some sort you can access it through, e.g., ssh user1@ip and you can also do ssh root@ip to go to your root user with su priveleges and then go to su user1. In my thinking ...
0
votes
1answer
31 views

Without using sudo, copy the file name passwd from the directory /etc to directory /var/student [closed]

please how to solve this question. Without using sudo, copy the file name passwd from the directory /etc to directory /var/student
-1
votes
1answer
107 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
39 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/...
2
votes
1answer
44 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
12 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
222 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
57 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
58 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
215 views
0
votes
2answers
25 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
41 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
251 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
17 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
17 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
180 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
33 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
28 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
32 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
29 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
50 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
45 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
42 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
28 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. ...