Solved

username

Posted on 2014-02-25
5
107 Views
Last Modified: 2014-10-15
in a sunsolaris machine

I logged in like this

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362


what is the username here
0
Comment
Question by:thomasliju
  • 2
  • 2
5 Comments
 
LVL 31

Expert Comment

by:Frosty555
ID: 39886741
Your question is a little confusing but I'm assuming that when you said:

nj09mhf0005[oracle:utildb] 3: ssh nj09mhf0362

Open in new window


The nj09mhf0005[oracle:utildb] 3: part was the console prompt, and you typed and executed the command ssh nj09mhf0362

In that case, you attempted to ssh into the nj09mhf0362 machine, and it will use whatever username was of the currently logged in user on your currently machine.

If you want to explicitly specify a user to login as on the remote machine, use a command like ssh someuser@nj09mhf0362
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39886747
If no user is given on the commandline ssh uses the name of the user you're logged in as, here probably "oracle", but please verify with "whoami" or "echo $USER"

"nj09mhf0362" is the name of the target host, by the way.
0
 

Author Comment

by:thomasliju
ID: 39886829
I confused you with the command..

This is just the prompt

nj09mhf0005[oracle:utildb] 3:

From this what is the username:
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39886956
What appears in the prompt is not necessarily the username, because the prompt is configurable (PS1 variable).

Better run

whoami

or

echo $USER
0
 

Author Closing Comment

by:thomasliju
ID: 40383692
yes it is absolutely correct.

Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now