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

Switch user in a init script?

Here's my Init script which I have at my Ubuntu workstation. I need to run a command as another user …

ubuntu sudo init
syntax error near unexpected token `do' when run with sudo

From here: http://www.sat.dundee.ac.uk/psc/watchdog/watchdog-testing.html for n in $(seq 1 60); do echo $n; sleep 1; …

linux bash sudo watchdog
Can't use yum inside Docker container running on CentOS

I am unable to run any yum commands inside my Docker container without getting the following error: ovl: Error while …

docker centos containers sudo yum
Qt, Linux, check if a given user has sudo privileges

I am running Fedora 17 KDE x64 and Qt 4.8.1. In contrast with Ubuntu, Fedora doesn’t give the first created user …

linux qt qt4 sudo sudoers
Change owner of the root folder and subfolders (Ubuntu 13.04)

I accidentally set owner of root folder (/) and all subfolders to one user by command $ sudo chown -R 'userName' /* Now …

linux unix ubuntu sudo chown
How do I change users in FileZilla?

I am using FileZilla to log in to an SFTP host with my credentials. However, I need to use an …

linux command-line sudo filezilla
Clear cache in remote server using ssh

I had been trying to clear cache in a remote server and i got these commands. First login as root …

linux shell ssh sudo clear-cache
How to give sudo access to a bash script?

I have a bash script(chbr.sh) to change my display brightness from terminal as my brightness keys doesn't work. `…

bash sudo sudoers
Getting $USER inside shell script when running with sudo?

How do I get the correct $USER if I run a shell script with sudo ? I run them as postinstall …

unix shell environment-variables sudo
How to make passwordless switch to another user in a shell script

I want to su from hadoopmaster to hduser. When I do it on the terminal, I do: su - hduser …

linux ubuntu ubuntu-12.04 sudo sudoers