Why should one use su and not login as root?

Updated -

Several reasons exist as why a user would want to perform system tasks as 'su' opposed to being logged in as 'root'.

  1. Several programs need to run as current user in order to perform specific tasks related to that user. If you are logged in as root and run an exploited application your system is comprised.

  2. Constantly using 'su' command will more than likely ke...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content