Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 557024

Summary: app-eselect/eselect-java: unable to set user-vm for users without interactive shell
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: [OLD] JavaAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2015-08-08 09:47:40 UTC
# WHILE the user agostino has /bin/bash as shell (FINE):
test ~ # su - agostino -c 'echo $SHELL'
/bin/bash
test ~ # su - agostino -c 'eselect java-vm set user 1'
test ~ #


# WHILE the user agostino has /sbin/nologin as shell (NOT FINE):
test ~ # su - agostino -c 'echo $SHELL'
This account is currently not available.
test ~ # su - agostino -c 'eselect java-vm set user 1'
This account is currently not available.


A workaround is set bash as shell, change the user-vm and rechange the shell.

It could be useful because some people create unprivileged users to run jar(s).