Operating System - HP-UX
1833267 Members
3294 Online
110051 Solutions
New Discussion

who am i and TSM, not working !!!!

 
Yanick Fugère
Occasional Contributor

who am i and TSM, not working !!!!

Hi there !!

Does anybody have any idea why the "who am i" command under TSM retrun nothing on HP-UX 11i, but when logging directly into unix(not in a TSM session) it work fine ????
5 REPLIES 5
Mark Grant
Honored Contributor

Re: who am i and TSM, not working !!!!

I think I'm correct in saying that "who" get the information from wtmp. Never used TSM but I would guess it doesn't log new sessions to wtmp and therefore "who" doesn't know who you are, on that TSM session.
Never preceed any demonstration with anything more predictive than "watch this"
Helen French
Honored Contributor

Re: who am i and TSM, not working !!!!

Did you check this:

# whoami

It might work since 'whoami' will always print effective user id while 'who am i' prints your original login id (from /etc/utmp).

Also see if 'who' works on your terminal session.
Life is a promise, fulfill it!
Chris Wilshaw
Honored Contributor

Re: who am i and TSM, not working !!!!

I'm using TSM on 11i too, and it works fine for me;

>>>Session 1 is active<<<
home/cw16791n =>who am i
cw16791n ttyq0 Sep 4 17:10

whoami also works.

I normally use TERM=vt320, but vt100 also works.

It's highly unlikely to be an error with TSM (the software's not actually been changed since HP-UX 9.04, and is no longer supported for patching etc).

What patch levels do you have on the following;

Streams Pty cumulative patch
Cumulative Mux and Pty Patch

I'm using PHNE_25083 and PHNE_26326
Mark Grant
Honored Contributor

Re: who am i and TSM, not working !!!!

"who am i" and "whoami" are different commands. "who am i" gives you information such as your login, tty etc as read wtmp whereas "whoami" just gives you your effective user id which might not be what you want!
Never preceed any demonstration with anything more predictive than "watch this"
Yanick Fugère
Occasional Contributor

Re: who am i and TSM, not working !!!!

these are the patch that i have: PHNE_27703 and PHNE_26326.

The goal is to get the tty info as a terminal id for identification purpose our ERP.

Well, i have take another solution to do the job... i switch to "tty"... another way of getting the info...

There are some work that need to be done on our system this week-end, i'll get back to all next week... maybe the problem will be solve by then...