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 can I switch to the user jenkins in the middle of a ssh script?

I run ssh root@myhost "sh -x" < myremotecommands.sh where myremotecommands.sh contains: #!/bin/sh sudo su apt-get update …

ssh sudo sh su
Setting up process.env variables using EXPORT while running node with sudo

I'm using node.js on EC2 I type EXPORT PORT=80 in terminal, and i see that it correctly saves it …

node.js sudo
Error "sudo: no tty present and no askpass program specified" while using with sshpass

I want to write a script in which I need to get the content of a file from different machine 192.168.0.2 …

shell sudo sshpass
Unable to use sudo on OSX, getting sudo: unknown uid 501: who are you?

When I type sudo <command> in terminal I get sudo: unknown uid 501: who are you? and when I …

macos terminal sudo uid
sudo pip install VS pip install --user

Can't remember where I read this, but either somewhere on here or in the comments of a tutorial I was …

python pip sudo
rvmsudo vs sudo?

I just moved to RVM. sudo bundle install gives me and error:- sudo bundle install /usr/local/rvm/rubies/…

ruby-on-rails rvm sudo
Execute a remote command after sudo - su anotheruser in Rundeck

I'm new with Rundeck and completely amazed with it and I'm trying to execute a job and my scenario is …

sudo rundeck
msysGit sudo-like command

If we open msysgit as administrator, we can use it as if we were root. However, it is often easier …

windows sudo msysgit git-bash su
How to get password for sudo

I'm trying to use the command sudo -i -u postgres for PostgreSQL, and the Google Compute Engine VM is asking …

google-compute-engine sudo
Switching users using WinSCP between different accounts

Is there way to switch between user accounts using WinSCP? When I am using PuTTY, I can use su command …

linux shell unix sudo winscp