Sponsored Content
Operating Systems HP-UX How can i get My parent user name while i am on remotely logged on other server. Post 302425886 by nitindreamz on Monday 31st of May 2010 03:28:39 AM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
NWUSERLIST(1)							    nwuserlist							     NWUSERLIST(1)

NAME
nwuserlist - List Users logged in at a NetWare server SYNOPSIS
nwuserlist [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -a ] [ -q ] [ -f [ -d ] [ -D ] [ -t ]] DESCRIPTION
nwuserlist lists the users logged in at a NetWare server, together with their connection number and their login time. nwuserlist looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more informa- tion. Please note that the access permissions of $HOME/.nwclient MUST be 600 for security reasons. OPTIONS
-h -h is used to print out a short help text. -S server server is the name of the server you want to use. -U user user is the user name to use for login. -P password password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwuserlist prompts for a password. -n -n should be given if no password is required for the login. -C By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off this conversion by -C. -a With option -a the IPX address of the station the user is logged in from is printed as well. -q With option -q object ID is printed in addition to user name. -f List also files opened by each connection. -d List detailed informations about each file. -D List DOS filename instead of filename which was used for opening. -t Show raw hexadecimal values in addition to human readable conversions. AUTHORS
nwuserlist was written by Volker Lendecke. See the Changes file of ncpfs for other contributors. nwuserlist 7/22/1996 NWUSERLIST(1)
All times are GMT -4. The time now is 08:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy