AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

How can root read a user's environment variable

  • 1.  How can root read a user's environment variable

    Posted Sun May 27, 2012 11:27 PM

    Originally posted by: SystemAdmin


    On AIX 5.3, is it possible for root to read the environment variables used by process? I had thought that these might be stored in /proc, but I did not have any success finding them in here.

    We use an application which stores the database instance information in environment variables; and, if I could read these variables, then I could identify which database a user was using. Any ideas?
    #AIX-Forum


  • 2.  Re: How can root read a user's environment variable

    Posted Mon May 28, 2012 12:25 AM

    Originally posted by: j.gann


    
    ps eww $PID
    


    Joachim Gann
    #AIX-Forum


  • 3.  Re: How can root read a user's environment variable

    Posted Tue May 29, 2012 01:04 AM

    Originally posted by: SystemAdmin


    Thanks! You got me on the right track.

    It was "ps auxeww" that gave me the details I was looking for; but the "eww" was new to me, and very useful.
    #AIX-Forum