WARNING: This site is intended for online use only; mass-downloading of pages degrades the server and is prohibited.
If you attempt to use tools to mass-download the site, you may be blocked permanently by automated software.
If you want to read this CertiGuide offline, please use one of the links on the left to purchase a convenient PDF copy. Thank you.

Read this whole guide offline with no ads, for a very low price!
Click Here!

Custom Search






Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 5: The Linux Operating System
      9  Command Line Functions And Administrative Utilities
           9  User Management Commands

Previous Topic/Section
w and who - Who is Logged in and What They are Doing
Previous Page
Pages in Current Topic/Section
1
Next Page
whoami - Print Effective UserID
Next Topic/Section

su - Run a Shell with Substitute User and Group IDs

System administrators should never use the root account as their default log in account. If only for the simple reason that running a command with the wrong set of meta characters (wild cards) will do much less damage with the permission set of their user account than from the root account. For example the command:

rm -r /*

Entered from a user account would have little affect on the system other than the user may lose most of his or her files, however consider the impact of running a command like this from the root account. Virtually every file and directory on the system will be deleted. This is one simple reason and administrator should always use their own account as their default account and then use the su command to become root for the period time that they need to perform administrative functions and when finished return to their own account. By entering:

su -

The user will be prompted for a password and after entering the root password, a new shell is opened under the userID of root and with all of the root account’s privileges. Root can be exited through the normal process of typing either exit or logout.

If necessary root can become any system user by typing:

su userid

No password will be necessary when changing from the root account to another user account.


Previous Topic/Section
w and who - Who is Logged in and What They are Doing
Previous Page
Pages in Current Topic/Section
1
Next Page
whoami - Print Effective UserID
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.