Oracle Consulting Oracle Training Oracle Support Development
Oracle Books
SQL Server Books
IT Books
Job Interview Books
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy


  Oracle Tips by Burleson

Switch to a Different User

It is often necessary to switch your identity to a different user. For
instance you may want to switch from your regular user login ID
(in my case terry) to the root logon in order to set up a new
directory structure with appropriate access permissions (discussed
in a later topic). Instead of logging off as terry and then logging on
as root, the su, switch user (or sometimes called super user)
command facilitates an easy switch.

As with other commands, the su command has a number of
available options, but the ones I find most useful are the - option
which essentially logs you into a new shell as the specified user
with the specified user's profile and the -c option which allows
you to run a command as the specified user. Without using the -
option, your current profile is maintained when switching users
and your environment variables, such as PATH for locating
executables, remain unchanged.

Unless you are logged in as root, you will be asked for a password
when you attempt to switch users. When you want to switch back
to your former user identity, you end the switched shell by using
the exit command.

The above book excerpt is from:

Easy Linux Commands
Working Examples of Linux Command Syntax

ISBN: 0-9759135-0-6   

Terry Clark 

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster

Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   



 Copyright © 1996 -2017 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks

Hit Counter