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).

Using shell_exec('passwd') to change a user's password

I need to be able to change the users' password through a web page (in a controlled environment). So, for …

php sudo shell-exec passwd
What causes transport: "dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused"?

There are good explanations on how to resolve this issue. SOF Q1, SOF Q2 and many more related questions on …

docker containers fedora sudo
Switch to postgres user on Mac

I would like to su to the postgres user on Mac, so that I can run postgres. What am I …

postgresql osx-lion sudo su
How to run sudo commands in terraform?

My question is similar to this git hub post, but unfortunately it is unsolved: https://github.com/hashicorp/terraform/issues/550 …

sudo provisioning terraform
X11: run a gnome app as another user

I have ubuntu + x11 + gnome. I want to run a graphical application as another user. However, when I start it …

linux ubuntu x11 gnome sudo
Fabric - sudo -u

I'm using fabric to launch a command on a remote server. I'd like to launch this command as a different …

python django sudo fabric
Save file as root after editing as non-root

Ok so this happens to me all the time. There has to be a better solution. Let's say you do …

linux bash vim sudo
Passing-through environment variables to Tomcat 7.0 web app context

Apache Tomcat 7.0, CentOS 5.8 i386 A web application needs a specific environment variable XY to be present in its context. This …

variables tomcat environment sudo context.xml
Get netbeans to run my project with sudo?

I am working on a project in netbeans that requires the running project to have root privileges. I would like …

java netbeans ant sudo gksudo
how to make non root user as sudo user in docker alpine image?

I am trying build cassandra docker image using alpine based os. on the container run process i am getting permission …

docker containers sudo alpine sudoers