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

I cant open Netbeans without sudo

I am developing Java application using NetBeans 8.1 to have access to the Bluetooth with Java I had to start NetBeans with sudo. Since that I haven't been able to run NetBeans with simple user, how ...
0
votes
0answers
21 views

Why won't the sudo password work in terminal? [duplicate]

I spent days trying to use Itunes on Linux with no luck. This is because every solution I find requires me to enter my password. However it will not let me type it! Please help.
0
votes
0answers
21 views

sudo apt-get install virtualbox downloading the android studio [duplicate]

I am using kubuntu and I used this command yesterday to download android studio sudo apt-get install android-studio and then I saw it installing the same file android-studio zip file that I have ...
0
votes
2answers
26 views

What are the actual risks of giving www-data sudo nopasswd access?

I have a server that I just installed apache on. I have a php script on the server that I would like to run a sudo command from. I've been scouring the web on why giving www-data sudo nopasswd access ...
0
votes
1answer
17 views

Is `scp` for non sudo users executable?

Can non sudo users execute scp command while using two remote servers?
0
votes
1answer
21 views

How to serve static files on startup?

I have a kiosk, which displays a website inside of chrome, on full-screen mode. Website files, are static html templates, and they're stored in: /home/kiosk/app directory and I want to display them ...
1
vote
0answers
36 views

/etc/sudoers file corrupted and I can't run 'pkexec visudo' over SSH

Following the instruction here I get: pkexec visudo ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo' as the super user Authenticating as: ...
0
votes
0answers
18 views

libertine fails with “sudo: no tty present and no askpass program specified” [closed]

I'm trying unity8 on yakkety. I would like to try libertine, but each time I try to create a container it says the following sudo: no tty present and no askpass program specified and fails. Do you ...
0
votes
1answer
18 views

Problem with cmake and package libccext2

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/etherlab ../pdserv-1.1.0 -- Mercurial was not found. -- checking for module 'libccext2' -- package 'libccext2' not found CMake Error at /usr/share/cmake-2.8/...
-1
votes
0answers
63 views

404 not found with sudo apt-get update

Can somenone help me? How can I solve those problems? Thanks in advice W: The repository 'http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial Release' does not have a Release file. N: Data ...
-1
votes
1answer
29 views

How to achieve sudo privilege in shell script? [duplicate]

how do I can achieve sudo privilege via the shell script without entering the password? Example: [user@user Desktop]$ ./script.sh [user@user Desktop]# which command should I try on the script.sh?...
0
votes
1answer
35 views

Everything is permission denied

After a fresh Ubuntu Mini CLI install, nothing has permission to do anything. ssh-keygen can't create a directory for id_rsa.pub, git can't do anything without sudo, etc. I can read most files, but ...
0
votes
0answers
19 views

Unable to update program when not root. Can update as root but update still showing for normal user

I'm using DataGrip on Ubuntu 16.04 on a Dell Precision 5510. I've installed DataGrip and I'm using it successfully, but I have issues with an update. The program prompts me to update: But when I ...
2
votes
4answers
82 views

How do I run any application as root? [duplicate]

While logged in as the root account of a CLI installation, almost every application gives me this error: Don't run this as root! I want to bypass this error and run the application while logged ...
0
votes
0answers
20 views

Host key verification failed while using scp

While using scp command to transfer files among two servers i would be asked for password of server1, upon typing the correct password i would be getting an error saying "host key verification failed ...
2
votes
0answers
24 views

running compiler with sudo not works but as root does

The next command is working ok while logged as regular user or root but does not work when using sudo: arm-linux-gcc --v not working: sudo arm-linux-gcc --v
1
vote
1answer
52 views

How to avoid password request for sudo for crontab scripts?

I need that a new user could execute sudo without any request of password, because this user has in crontab a .sh that uses sudo for some commands. I created a new user on my ubuntu server 16.04 x64 ...
1
vote
1answer
19 views

Visudo - Change user without password doesn't work

I want a user to be able to change to another user without a password and any other root rights. I followed already a hint on http://apple.stackexchange.com/questions/82438/allow-sudo-to-another-user-...
0
votes
0answers
31 views

Programs requiring SUDO authentication not launching from Unity search launcher and Synapse [Ubuntu, 16.04]

So, basically what's in the tittle. I can execute any installed program with both Synapse and Unity, but if it requires SUDO authentication (like Synaptic, Y-PPA manager) it doesn't launch. It's ...
3
votes
2answers
46 views

Prevent sudo users switching to another user, without the target-users password?

Sorry if the title is ambiguous, however I'm quite new to Ubuntu but have just set up a webserver running it with a group "developers" that are all sudo. At the moment Users can only login via SSH ...
1
vote
1answer
24 views

Disable root for a group

I have a server and I would like to have it where a group called client can't access sudo/su/root. How do I do that? I know to use the visudo command.
0
votes
0answers
15 views

Jetson Tegra TX1 Ubuntu 14.04

I am trying to update using sudo apt-get update on my Jetson Tegra TX1 but I am getting the following error.. E: GPG error: http://ports.ubuntu.com trusty InRelease: Clearsigned file isn't valid, ...
1
vote
1answer
74 views

Sudo command and its source

So I was learning some things and came across the sudo command. Thesudo command is placed in /usr/bin/sudo on my Xubuntu 16.04 I'm interested to know if anyone can advise which program I could use ...
1
vote
1answer
86 views

How to prevent execution of “sudo rm -rf --no-preserve-root / ” command? [duplicate]

After going through this question I'm quite scared! It's not that I don't want to use sudo rm command, but I want to inhibit the execution of the sudo rm -rf --no-preserve-root / command. If this ...
0
votes
1answer
55 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
72 views

Unable to find password on sudo apt-get [duplicate]

I want to install some apps. I did: $ sudo apt-get [sudo] password for .....: But I cannot install my apps!
1
vote
1answer
29 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
280 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
43 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 ...
0
votes
1answer
26 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
47 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
19 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. ...
10
votes
2answers
156 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
25 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
88 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
62 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
37 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
26 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
53 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
51 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
131 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
179 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
27 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
33 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
184 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
28 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
610 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
32 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
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 ...