How can i get My parent user name while i am on remotely logged on other server.


 
Thread Tools Search this Thread
Operating Systems HP-UX How can i get My parent user name while i am on remotely logged on other server.
# 1  
Old 05-31-2010
How can i get My parent user name while i am on remotely logged on other server.

Hi
please suggest .. how can i get my original user from which logged in to another server.

my main current login is

Code:
[root@server1 nitin]$whoami
nitin
[root@server1 nitin]
[root@server1 nitin] ssh nit01@n01

i m going (redirected)to log in below path..
Code:
nit01@n01:/home/n01 -> pwd
/home/n01
nit01@n01:/home/n01 ->

on this server i want get my parent user name i.e. (nitin)


Please help me out.

Thanks in Advance
Nitin

Moderator's Comments:
Mod Comment Please use code tags, ty

Last edited by pludi; 05-31-2010 at 04:40 AM..
# 2  
Old 05-31-2010
I think not possible!

Last edited by ./hari.sh; 05-31-2010 at 06:29 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Last user logged in

hi! How can I find into: /var/log/messages.4 /var/log/messages.3 /var/log/messages.2 /var/log/messages.1 /var/log/messages The last user do a login? (for example user1) My idea is to search by the pattern "Accepted password for" buy I necessary search into all files first and in the... (2 Replies)
Discussion started by: guif
2 Replies

2. Solaris

user not connecting remotely

hi , I have created a user using useradd command in solaris 10 , when i connect to user oracle remotely from xmanager it is not connecting any idea did we have assign some extra privileges to connect remotely from xmanager. Thanks in advance (5 Replies)
Discussion started by: zeeshan047
5 Replies

3. Shell Programming and Scripting

current logged in user

Hey guys I need a script that reads a login name and verifies if that user is currently logged in i have found few commands like "who" and "users" but i wonder how can i verify it that login name is logged in or not? (3 Replies)
Discussion started by: nishrestha
3 Replies

4. Red Hat

How to confirm an user logged in is a remote user?

How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Discussion started by: kirtikjr
2 Replies

5. Shell Programming and Scripting

Does running a cron job of a user require the user to be logged in?

Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

6. Red Hat

Isql doesn't work when logged in remotely.

Our database is housed on a Red Hat Enterprise Linux ES release 4 (Nahant Update 8). My version of isql is "unixODBC 2.2.11". Issue: If I log in to this box on the internal network, or over the VPN i can type: isql -Usa And it will prompt for the password and connect. Today I logged... (0 Replies)
Discussion started by: Bubnoff
0 Replies

7. UNIX for Advanced & Expert Users

Send email as a different user than the user logged in

Hi I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in. something like do-not-reply@xyz.com Thank you. (1 Reply)
Discussion started by: rakeshou
1 Replies

8. UNIX and Linux Applications

user logged on any server

the method to find out the all the user who are the current user of the system? i tried with the who. but with that i receive the TTY like something. (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies

9. Shell Programming and Scripting

user logged on?

Hi, What commands do i need to check if a user is logged on to the network? thanks. (1 Reply)
Discussion started by: provo
1 Replies

10. UNIX for Dummies Questions & Answers

Is user logged on??

How can i check to see if a user is logged on to the network? (1 Reply)
Discussion started by: provo
1 Replies
Login or Register to Ask a Question