In this post I’ll add information regarding using PowerBroker in the enterprise. This will be short, usable commands and explanations. Hope you find it usefull
Obtain powerbroker access in an enterprise
Enterprise environments typically assign PB access though Active Directory groups. So once a request is completed they’ll have added your AD user to the PB group and you can run pbrun commands
# pbrun -u root bash
There are times when you need internet access from a Linux system to download an RPM. Say to download the latest version of elastisearch.
For example here’s the link to a recent version: https://www.elastic.co/downloads/elasticsearch#ga-release
Now let’s say you want to download the file from a Linux system. Typically Linux servers don’t have public access to the internet. But you could leverage your corporate proxy. So speak with your network admin to secure access to the proxy. Sometimes the proxy is opened internally and sometimes you’ll need to use your Active Directory credentials. Typically you can find out the IP of the proxy by looking at the Internet Explorer settings on your Windows desktop.
Once you’ve identified the proxy you can configure it as follows
# export https_proxy=<hostname>:8080
Then you can download your RPM
# wget –no-check-certificate https://www.elastic.co/downloads/elasticsearch#ga-release
If you want to kill all processes for a certain user you can do it with one command
$ su - <user>
$ kill -9 -1
This command will also kill the shell session that on which you’re logged in.
You need to be careful not to run this command as root because it will stop the server. With great power comes great responsibility