run specific script with an other user linux
Shell
/bin/su -c "/path/to/backup_db.sh /tmp/test" - postgres
Breaking it down:
/bin/su : switch user
-c "/path/to..." : command to run
- : option to su, make it a login session (source profile for the user)
postgres : user to become
Also in Shell:
- Title
- pytype
- Category
- Shell
- Title
- show applications shortcut ubuntu
- Category
- Shell
- Title
- git bash Could not open a connection to your authentication agent. when adding ssh
- Category
- Shell
- Title
- linux install ifconfig
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- undo git add
- Category
- Shell
- Title
- how to run a train animation in linux terminal
- Category
- Shell
- Title
- how to check in which brach we are in git
- Category
- Shell
- Title
- git remove remote
- Category
- Shell
- Title
- exit telnet
- Category
- Shell
- Title
- assign default value in shell script
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- linux edit file
- Category
- Shell
- Title
- list user groups linux
- Category
- Shell
- Title
- mostrare i grafici matplotlib sulla shell python
- Category
- Shell
- Title
- git files changed between two commits
- Category
- Shell
- Title
- bily-101 github
- Category
- Shell
- Title
- offline heic to jpg converter on linux
- Category
- Shell
- Title
- run screen on background linux terminal
- Category
- Shell
- Title
- pycharm duplicate line
- Category
- Shell
- Title
- create symbolic link linux
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- date linux show millis
- Category
- Shell
- Title
- git config --global credential.helper osxkeychain
- Category
- Shell
- Title
- how to put files into gitignore
- Category
- Shell
- Title
- why cant i add some applications to favourite in ubuntu
- Category
- Shell
- Title
- docker no space left on device ubuntu but only 75% use?
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- git stash command with name
- Category
- Shell
- Title
- update ubuntu
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- fcm post example curl
- Category
- Shell
- Title
- grep for all .py files containing a word
- Category
- Shell
- Title
- nslookup not found ubuntu
- Category
- Shell
- Title
- add credentials to git
- Category
- Shell
- Title
- how to uninstall rust
- Category
- Shell
- Title
- powershell create symlink
- Category
- Shell
- Title
- createa. branch off of development git
- Category
- Shell
- Title
- linux add user to group
- Category
- Shell
- Title
- remove git tracking
- Category
- Shell
- Title
- git add commit in one command
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- delete local branch git
- Category
- Shell
- Title
- npx create-react-app not working
- Category
- Shell
- Title
- ubuntu check ssh login log
- Category
- Shell
- Title
- how to get stashed on git
- Category
- Shell
- Title
- réinstaller interface graphique debian
- Category
- Shell
- Title
- .gitignore
- Category
- Shell
- Title
- angular add service worker
- Category
- Shell
- Title
- how to install react router dom with typescript
- Category
- Shell
- Title
- screen sharung zoom linux x11
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- install vue router
- Category
- Shell
- Title
- haproxy in centos 7
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- vagrant 16
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell
- Title
- upgrade django
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- edit default port for linux server
- Category
- Shell
- Title
- how to install pod
- Category
- Shell
- Title
- how to unadd gitr file
- Category
- Shell
- Title
- bash if statement
- Category
- Shell
- Title
- edit files from terminal linux
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- pod deintegrate
- Category
- Shell
- Title
- angular add universal
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- install react react testing library
- Category
- Shell
- Title
- install numpy
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- how to update git on windows
- Category
- Shell
- Title
- git delete branch after merge
- Category
- Shell
- Title
- ubuntu bionic docker container install chrome
- Category
- Shell
- Title
- react quill
- Category
- Shell
- Title
- git ignore
- Category
- Shell
- Title
- ubuntu chmod codes
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- electron
- Category
- Shell
- Title
- how to pull from a particular branch in git
- Category
- Shell
- Title
- linux find file containing text
- Category
- Shell
- Title
- install dateutil
- Category
- Shell
- Title
- git find out commit for tag
- Category
- Shell
- Title
- ansible-galaxy install to specific directory
- Category
- Shell
- Title
- get additional parameters linux scripting
- Category
- Shell
- Title
- bash case statement
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- connect to windows 10 remote desktop from ubuntu
- Category
- Shell
- Title
- git prune while fetch globally
- Category
- Shell
- Title
- shell set environment variable
- Category
- Shell
- Title
- adding remote origin git
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- Unexpected end of JSON input while parsing near '...reate-hmac-1.1.2.tgz"'
- Category
- Shell
- Title
- mac brew: command not found
- Category
- Shell
- Title
- git bash set global username and password
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell