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

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

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 

http://www.rampant-books.com/book_2005_1_linux_commands.htm 

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