PowerBroker Commands

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

Become root

# pbrun -u root bash

Using a proxy in Linux to download a file

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