ddusnoki / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

Processes running under a user with no shell cannot be examined by jvmtop #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a user that has no shell set.
2. Start a process as that user (in my case using puppet).
3. run jvmtop from root - at this point I get connection refused/access denied 
for the process in question
4. assign a shell to the user
5. restart the process
6. run jvmtop
7. now you can monitor the process

What is the expected output? What do you see instead?

I expected to see the jvmtop output for services under the user, but get 
denied. After giving the user a shell I can see the output.

What version of jvmtop are you using? On what operating system?

CentOS 6

Please post the output of the following commands:

>echo $JAVA_HOME
/usr/java/jdk1.7.0_40

> java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)

Please provide any additional information below.

I just want to know if this is a limitation of jvmtop, if there is a nuance in 
the config, or something else. For security reasons I would prefer not to set a 
shell for certain process specific users.

Original issue reported on code.google.com by hanssh...@gmail.com on 26 Nov 2014 at 7:29

GoogleCodeExporter commented 9 years ago
jvmtop version is: JvmTop 0.8.0 alpha

Original comment by hanssh...@gmail.com on 26 Nov 2014 at 7:34

GoogleCodeExporter commented 9 years ago
not sure if this still needed, but anyway, here's how I mitigated this problem:

su -c "full path to jvmtop.sh with some parameters" -s /bin/bash <USER_NAME>

probably we could put a fix into jvmtop.sh itself so username will be just an 
optional parameter for jvmtop.sh

Original comment by vitalii....@gmail.com on 12 Mar 2015 at 5:40