Top "Sudo" questions

The sudo command is a program for Unix and Unix-like computer operating systems that allows a user to run programs with the security privileges of another user (normally the superuser, or root).

How do you find the original user through multiple sudo and su commands?

When running a script via sudo or su I want to get the original user. This should happen regardless of …

linux bash unix sudo su
How to call shell script from php that requires SUDO?

I have a file that is a bash script that requires SUDO to work. I can run it from the …

php bash sudo shellexecute
Unable to use sudo commands within Docker, "bash: sudo: command not found" is displayed

I have installed TensorFlow using the following command docker run -it b.gcr.io/tensorflow/tensorflow:latest-devel and I need …

docker sudo tensorflow-serving
Getting message "sudo: must be setuid root", but sudo IS already owned by root

I'm trying to run sudo, and it's failing: gregd@david $ sudo ls sudo: must be setuid root gregd@david $ which …

linux sudo setuid
Open a file with su/sudo inside Emacs

Suppose I want to open a file in an existing Emacs session using su or sudo, without dropping down to …

emacs file-permissions sudo
Ubuntu 12.04 LTS bash: sudo: command not found

I am new to Linux terminal, now I tried to use sudo, apt-get, whereis etc., commands in linux it returns …

ubuntu-12.04 sudo apt-get
Where are sudo incidents reported?

Attempting something devious on my machine leads to ryan@debian:~$ sudo EAT_ALL_THE_COOKIES_BEFORE_DINNER [sudo] password for …

linux command-line permissions debian sudo
Identify user in a Bash script called by sudo

If I create the script /root/bin/whoami.sh containing: #!/bin/bash whoami and this script is called by a …

linux bash sudo
error: XDG_RUNTIME_DIR not set in the environment. Gtk-WARNING **: cannot open display:

I used to open text files with sublime, and for Read-only files, I used to do : sudo sublime. But now …

ssh gtk ubuntu-14.04 sudo xdgutils
How do I run my application as superuser from Eclipse?

I'm running in to an error when I try to run my server application from Eclipse. The error is java.…

java eclipse ssl client-server sudo