• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Techgoeasy

Techgoeasy

Learn Oracle, PHP, HTML,CSS,Perl,UNIX shell scripts

  • Home
  • Oracle
    • Oracle database
    • Oracle Ebusiness Suite
    • Oracle weblogic
    • Oracle Performance Tuning
    • Oracle Hyperion
    • Oracle Cloud Tutorials
  • SQL
  • interview questions
  • Linux
  • PHP and HTML
  • Downloads
  • General
Home » Oracle » How to create additional User on Oracle Compute instance (Linux/Window)

How to create additional User on Oracle Compute instance (Linux/Window)

November 6, 2019 by techgoeasy Leave a Comment


When we create the Oracle Compute instance (Linux/Window), by default OPC user is created and it has sudo privileges on linux and add user account privileges on Windows instance

To create an additional SSH-enabled user on Linux Compute instance

1.Generate an SSH key pair for the new user.

How to generate ssh key pair on Unix using ssh-keygen

How to Use Puttygen on Windows for key generation

  1. Copy the public key value to a text file for use later in this procedure.
  2. Log in to your instance using the OPC user
  3. Become the root user:

sudo su

  1. Create the new user:

useradd <new_user>

  1. Create a .ssh directory in the new user’s home directory:

mkdir /home/<new_user>/.ssh

  1. Copy the SSH public key that you saved to a text file into the /home/new_

user/.ssh/authorized_keys file:

echo <public_key> > /home/<new_user>/.ssh/authorized_keys

  1. Change the owner and group of the /home/username/.ssh directory to the new user:

chown -R <new_user>:<group> /home/<new_user>/.ssh

  1. To enable sudo privileges for the new user, run the vi sudo command and edit the

/etc/sudoers file as follows:

In /etc/sudoers, look for:

%<username> ALL=(ALL) NOPASSWD: ALL

Add the following line immediately after the preceding line:

%<group> ALL=(ALL) NOPASSWD: ALL

 

Creating Additional Users on a Windows Instance

  1. Log in to your instance using a Remote Desktop client.
  2. On the Start menu, click Control Panel.
  3. Click User Accounts, and then click User Accounts again.
  4. Click Manage User Accounts.
  5. Click Manage Another Account.
  6. Click Add User Account.
  7. Enter a User name and Password.
  8. Confirm the password, and then create a Password hint.
  9. Click Next.
  10. Verify the account, and then click Finish.

You can now log in as the new user.


Filed Under: Oracle, Oracle cloud

Reader Interactions

Leave a Reply Cancel reply

Primary Sidebar

Top Posts & Pages

  • Oracle Indexes and types of indexes in oracle with example
  • Top 30 Most Useful Concurrent Manager Queries
  • Top 46 Oracle ASM Interview Questions
  • Oracle dba interview questions and answers
  • 40 question you must know about R12.2



Subscribe to our mailing list

Enter your email address to subscribe to this blog and receive notifications of new posts by email

Recent Posts

  • EBS PDB service name disappear from listener in 19c
  • how to download oracle e-business suite 12.2 software
  • Step by step upgrade process to R12.2 Upgrade part -2(Main Upgrade Driver for R12.2.0)
  • Step by step upgrade process for R12.2 Upgrade Part -1
  • Step by step upgrade process for R12.2 Upgrade Part -4(Applying 12.2.x Release Update Pack)

Copyright © 2021 : TechGoEasy

  • Hire me
  • Privacy Policy
  • Contact Us
  • New? Start Here
  • About Us