Language Selection

English French German Italian Portuguese Spanish

Change Prompt Color when logged in as Root

Filed under
HowTos

All security books will recommend you not to allow root SSH logins to your Linux machines. So most of us (administrators) commonly SSH with our regular user credentials and then use "su" to escalate our privileges in order to perform root tasks. If you do this frequently, sometimes it gets a little confusing to make out if you are currently root or regular user. To determine your current status you probably you end up looking at your prompt or type in "whoami".

In this article, I will show you how to change the color of your prompt when you escalate your privileges to a super-user. This technique is a good way to remind yourself that you are holding high privileges (so don’t do anything stupid). This tip is for administrator’s convenience and helps out more if you are managing large number of Linux servers.

Step 1: Login and escalate your privileges to a Super-User

I have a regular user account (username=param) on a Linux server. So in this step, I simply login to the server and then used “su” command to escalate my privileges to a Super-User.

Full Story.

More in Tux Machines

Linux evolution

We’re picking our best Linux distributions for 2014. It’s always an odd task and this year we’ve decided to take the chance to delve into the genus behind the distros that we use every day. We’ve been inspired by the GNU/Linux Distribution Timeline at http://futurist.se/gldt which we’ve mentioned before, and decided that we’d explore why the major families in the GNU/Linux world sprang up and how they’ve evolved over the years. Read more

Open source more about process than licensing

It is a testament to the success of the Open Source Initiative's (OSI) branding campaign for open source software that "open source" and "licensing" are functionally synonymous. To the extent that people are familiar with open source software, it is the source code released under a license that lets anyone see the "crown jewels" of a software program as opposed to an opaque binary, or black box that hides its underpinnings. Read more

First open source enterprise resource planning app for Drupal unveiled

ERPAL for Service Providers is the world's first open source ERP built on Drupal, a popular content management system. Read more

Eight Key Open-Source Internet of Things Projects

Open source is key to the development of the Internet of things (IoT). Therefore, the Eclipse Foundation is taking a hard look at IoT for Java developers. In fact, the Eclipse IoT community is making it easier for Java developers to connect and manage devices in an IoT solution by delivering at JavaOne 2014 an open IoT stack for Java developers. Based on open source and open standards, the Eclipse Open IoT Stack for Java simplifies IoT development by enabling Java developers to reuse a core set of frameworks and services in their IoT solutions. In addition to the core Open IoT Stack, a set of industrial frameworks are available to accelerate the process of creating home automation and SCADA factory automation solutions. "Our goal with this is to ensure that Java developers have a free and open-source platform for building IoT solutions," said Mike Milinkovich, executive director of Eclipse. Read more