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)

5
votes
0answers
27 views

When should I use pkexec and when sudo -i?

I wrote an answer advising the use of sudo -i nautilus. I know that gksu is deprecated, and I was under the impression that sudo -i is how we should run graphical applications as root without killing ...
0
votes
0answers
12 views

Can't run spark-submit with sudo

I don't know if this is a noob question or not, but my various google searches yielded nothing. When I run my application, which uses spark-submit under the hood, without sudo, it works. But when I ...
0
votes
1answer
16 views

nmap not working as root

I have a question regarding to nmap. Whenever I try to run nmap as a root, I get: > Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn Nmap done: 1 IP address (0 ...
0
votes
0answers
10 views

Cannot connect to internet or sudo apt-get in Ubuntu Server

I installed Ubuntu Server on an old windows laptop. I have my computer connected through an ethernet and I absolutely cannot get anything to work through sudo apt-get. Im very new to Linux, but I ...
2
votes
1answer
69 views

Creating files when “sudoed” messes up permissions and users

I have some trouble installing some packages I compiled from source. Everything seems to work fine, until I try to actually use the files installed in a global place. It turns out the permisions and ...
26
votes
6answers
13k 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 ...
0
votes
0answers
20 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.
10
votes
2answers
164 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 ...
5
votes
1answer
5k views

sudo: unknown uid xxxxx: who are you?

I was using ssh and trying to upgrade a system from Ubuntu 10.04 to 12.04. The connection had an issue so I had to login again to finish the upgrade. After running sudo dpkg --configure -a that was ...
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 ...
1
vote
1answer
143 views

Security risk for making the sudo password timeout infinite?

I recently changed my sudo password timeout (the amount of time that passes before sudo asks you for your password again). It defaults to 15 minutes; I raised that to an hour with sudo visudo and ...
1
vote
2answers
5k views

How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins

I am trying to configure apache2 with cgi (python). For that, I have to change permissions of some folders and files but I am getting sudo fatal errors every time I try to change the permission of a ...
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 ...
0
votes
1answer
17 views

Is `scp` for non sudo users executable?

Can non sudo users execute scp command while using two remote servers?
2
votes
4answers
22k views

What is 'sudo tar -xzf'? Why it is used?

I need to know the extensions of xzf and its usage. Is it necessarily to be used in installing a software? sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz Why this is used?
23
votes
8answers
51k 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 /usr/lib/apt/...
20
votes
7answers
27k views

su command + authentication failure

I am having problems with the su command. I know my password and I am typing it correctly but su indicates authentication failure. So I checked on the internet and then went into recovery mode and ...
1
vote
0answers
40 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
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
66 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 ...
19
votes
2answers
13k views

warning message at command line `sudo`

Everytime I try to sudo something at the terminal, I get a warning message: alexandre@XPS-15Z $ sudo mount file.iso /mnt/ -o loop [sudo] password for alexandre: no talloc stackframe at ../source3/...
6
votes
1answer
21k views

sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0

Whenever I try to do anything at all that requires my password it returns this: u7ur7l3@ubuntu:~$ sudo sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0 sudo: fatal error, unable to load plugins ...
-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?...
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
1answer
36 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 ...
1
vote
1answer
53 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 ...
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
26 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
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 ...
80
votes
10answers
7k views

Run same command again but as root

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?
1
vote
1answer
21 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
32 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 ...
111
votes
5answers
745k views

How do I start/stop mysql server?

I tried to find in some articles describing how to correctly start & stop mysql server. I found this link: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I ran this ...
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.
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 ...
0
votes
0answers
16 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, ...
6
votes
1answer
6k views

Errors followed by command “Sudo nautilus”

I have opened Nautilus with root power to delete some items.When I typed Sudo nautilus,the particular window opened up,but some errors also came along with it as following: meego@meego-Notebook-PC:~$ ...
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 ...
4
votes
1answer
282 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/...
0
votes
1answer
58 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 ...
19
votes
8answers
59k 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?
108
votes
5answers
197k views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
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 ...
15
votes
2answers
4k views

Why do I need root privileges to umount a drive at the command line, but not in Nautilus? How to change that?

When I insert a thumb drive, media card, or USB hard drive, to unmount it via the command line, I need to use: sudo umount /media/the_device But, I can unmount the device in a file manager like ...
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 ...