run specific script with an other user linux
/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:
- linux find files without string
- install chromedriver linux
- pause powershell script until keypress
- how to check which packages homebrew has installed
- grep ip address
- add-apt-repository
- install dateutil
- ufw allow postgresql
- terminal how to find a file name
- run docker redis localhost
- how to access a samba share folder in linux
- install laravel
- mac anydesk start at login
- how to install react spring
- Failed at the [email protected] postinstall script.
- hasura squashmigrations
- how to check if i have docker installed
- wget git bash
- find command also return directory names?
- ldap query powershell
- updating git on mac
- date linux show millis
- dnstwist kali linux
- join linux to ad domain