AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
after login in my aix session, no value is being populated in REAL_USER.
i checked the /etc/setenv_user file and found the following line
REAL_USER=`/bin/usr -uid` (some similar line, i have forgotten as i am not
export REAL_USER with my system now)
I ran the script setenv_user with ksh -x (we use korn shell) for debugging purpose.
i could see that atleast inside the script the required value is getting populated in REAL_USER. However, after running the script when i give the command "echo $REAL_USER", it displays me no value.
Can any one please help me out with this?
Yes Sir!
The script does have the statement "export REAL_USER" after the value of REAL_USER being set in the preceeding statement using "REAL_USER=`/usr/xpg4/bin/id -urn`"....
It seems that REAL_USER is used to extract the user that has logged in (i am not sure).
Yes Sir!
The script does have the statement "export REAL_USER" after the value of REAL_USER being set in the preceeding statement using "REAL_USER=`/usr/xpg4/bin/id -urn`"....
It seems that REAL_USER is used to extract the user that has logged in (i am not sure).
On my systems /usr/xpg4 does not exist so the command will not produce any output, does the file /usr/xpg4/bin/id exist on your system?
If it does exist what output does the command /usr/xpg4/bin/id -urn produce?
If it produces the expected output from the command line then you need to look at the differences in the scripts shell from your users shell.
If it produces the expected output from the command line then you need to look at the differences in the scripts shell from your users shell.
yeah!!! it is indeed producing the expected output.
i am so sorry that i couldnt get the statement "you need to look at the differences in the scripts shell from your users shell".
can you please explain me the steps as in how to do it.
X/Open is *not* an intrinsic part of AIX, and the entire "/usr/xpg4" probably won't even exist on most flavors of *nix. Certainly not any Linux systems. So it's not really portable, and I'd discourage your relying on it if you can avoid it.
@paulsm4
==========
so sorry, it seems that by mistake i gave some what wrong information.
the exact line in my /etc/setenv_user script is
REAL_USER=`/bin/id -urn`
export REAL_USER.
The baffling thing is that REAL_USER is getting populated in
development region and the production region. However, it is not
getting populated in QA region. I hope this will provide some more insight
into the problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.