LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I check another user's environment? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-check-another-users-environment-644294/)

homer_3 05-23-2008 09:18 AM

How can I check another user's environment?
 
I know I can do "env" to check the current user's environment settings, but I want to check a different user's environment settings. If I don't have access to log in as that user, is this possible?

SlowCoder 05-23-2008 09:26 AM

Quote:

Originally Posted by homer_3 (Post 3162445)
I know I can do "env" to check the current user's environment settings, but I want to check a different user's environment settings. If I don't have access to log in as that user, is this possible?

I think you'll need to answer why before you'll get any good answers. If you don't have access to that account, then you probably are not an admin, and probably don't have any valid need for the information.

pixellany 05-23-2008 09:36 AM

It appears that "env" simply gives you the current environment. I assume that this gets set by config files in the users $HOME folder. If I understand it correctly, then this means you would need read access to /home/username.

homer_3 05-23-2008 09:50 AM

Quote:

Originally Posted by SlowCoder (Post 3162453)
I think you'll need to answer why before you'll get any good answers. If you don't have access to that account, then you probably are not an admin, and probably don't have any valid need for the information.

I'm not the admin but I have tomcat starting up under it's own name. But I think it's environment is wrong because certain apps aren't starting up correctly. I wanted to check the environment to see if it was correct and if it wasn't, then I'd tell the admin what changes I need.

SlowCoder 05-23-2008 03:44 PM

This might sound round-about, but would it be possible for you to add 'env > envfile' to the end of the processes startup script, where envfile is in a location writable to tomcat? Of course you'd have to get your admin to modify the script for you.

Just a thought. Maybe someone can come up with something better.


All times are GMT -5. The time now is 01:54 AM.